Re: A Guide to Constraint Exclusion (Partitioning)

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: A Guide to Constraint Exclusion (Partitioning)
Дата
Msg-id 1122234909.21502.317.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: A Guide to Constraint Exclusion (Partitioning)  (Greg Stark <gsstark@mit.edu>)
Список pgsql-hackers
On Sun, 2005-07-24 at 15:00 -0400, Greg Stark wrote:

> Maybe I'm doing something more obvious wrong?
> 
>   db=> create table _test (a integer);
>   CREATE TABLE
> 
>   db=> create table _test2 (like _test);
>   CREATE TABLE

Yes, unfortunately. You need the phrase "INHERITS (_test)" after the
bracket and before the ; for any tables you want to be children of
_test, such as _test2. The syntax "like..." creates a similar table, but
with no linkage between parent and children.

Best Regards, Simon Riggs



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: For review: Server instrumentation patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: For review: Server instrumentation patch