CREATE TABLE ... INHERITS (parent INCLUDING xxx)

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема CREATE TABLE ... INHERITS (parent INCLUDING xxx)
Дата
Msg-id 20091030172549.3CA6.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответы Re: CREATE TABLE ... INHERITS (parent INCLUDING xxx)
Список pgsql-hackers
We have two ways to copy table definitions: - CREATE TABLE child ( LIKE parent ) - CREATE TABLE child ( ) INHERITS (
parent)
 

But "INCLUDING xxx" is supported only in "LIKE" version.
Should we have "INHERITS ( parent INCLUDING xxx )" syntax ?

We can use LIKE and INHERITS at once:   CREATE TABLE chld ( LIKE parent INCLUDING ALL ) INHERITS (parent)
but will have annoying log messages:   NOTICE:  merging column "..." with inherited definition

Since partitioning syntax are rewritten into INHERITS and INCLUDING ALL
internally, eliminating such logs will be better. CREATE TABLE LIKE +
ALTER TABLE INHERIT can solve the issue, but direct solutions are welcome.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Syntax for partitioning
Следующее
От: Hitoshi Harada
Дата:
Сообщение: Re: half OOT, plv8js group created ^^