Re: Partitioning rule not behaving as expected

From: "mlartz(at)gmail(dot)com" <mlartz(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Partitioning rule not behaving as expected
Date: 2006-04-24 22:56:15
Message-ID: 1145919375.592534.299540@y43g2000cwc.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2006-04-24 23:00:49 Re: Database Selection
Previous Message Jim C. Nasby 2006-04-24 22:54:50 Re: [GENERAL] Concurrency problem building indexes