Re: Partitioning rule not behaving as expected - Mailing list pgsql-general

From mlartz@gmail.com
Subject Re: Partitioning rule not behaving as expected
Date
Msg-id 1145919375.592534.299540@y43g2000cwc.googlegroups.com
Whole thread Raw
In response to Partitioning rule not behaving as expected  ("Nik" <XLPizza@gmail.com>)
Responses Re: Partitioning rule not behaving as expected
List pgsql-general
Since partitioning is just specialized inheritance, your zone_data
table doesn't actually have any rows in it, its just using the default
behavior of Postgres (from the manual:
http://www.postgresql.org/docs/8.1/interactive/ddl-inherit.html):

"In PostgreSQL, a table can inherit from zero or more other tables, and
a query can reference either all rows of a table or all rows of a table
plus all of its descendant tables. The latter behavior is the default."

Use the "ONLY" keyword to only select rows in zone_data (of which there
are hopefully none):

SELECT * from ONLY zone_data;

HTH
-Mike


pgsql-general by date:

Previous
From: "Claudio Tognolo"
Date:
Subject: Commit rules or Commit trigger
Next
From: "IvoD"
Date:
Subject: Re: Database Selection