Re: Partitioning rule not behaving as expected

Поиск
Список
Период
Сортировка
От mlartz@gmail.com
Тема Re: Partitioning rule not behaving as expected
Дата
Msg-id 1145919375.592534.299540@y43g2000cwc.googlegroups.com
обсуждение исходный текст
Ответ на Partitioning rule not behaving as expected  ("Nik" <XLPizza@gmail.com>)
Ответы Re: Partitioning rule not behaving as expected  ("Nik" <XLPizza@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: "Claudio Tognolo"
Дата:
Сообщение: Commit rules or Commit trigger
Следующее
От: "IvoD"
Дата:
Сообщение: Re: Database Selection