Search Postgresql Archives

Re: Partitioning rule not behaving as expected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux