Re: Check constraints on partition parents only?

Поиск
Список
Период
Сортировка
Искать
От
Nikhil Sontakke
Тема
Re: Check constraints on partition parents only?
Дата
Msg-id
CABamaqPRV6rNvpo09EP3Rt_hJFc1aAnyh9TS5G9o-M_W7X+W2g@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Check constraints on partition parents only? Jerry Sievers <gsievers19@comcast.net>
Re: Check constraints on partition parents only? Andrew Dunstan <andrew@dunslane.net>
Re: Check constraints on partition parents only? Alvaro Herrera <alvherre@commandprompt.com>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>
Re: Check constraints on partition parents only? Robert Haas <robertmhaas@gmail.com>
Re: Check constraints on partition parents only? Andrew Dunstan <andrew@dunslane.net>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>
Re: Check constraints on partition parents only? Robert Haas <robertmhaas@gmail.com>
Re: Check constraints on partition parents only? Tom Lane <tgl@sss.pgh.pa.us>
Re: Check constraints on partition parents only? "David E. Wheeler" <david@kineticode.com>
Re: Check constraints on partition parents only? Andrew Dunstan <andrew@dunslane.net>
Re: Check constraints on partition parents only? Robert Haas <robertmhaas@gmail.com>
Re: Check constraints on partition parents only? Alex Hunsaker <badalex@gmail.com>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>
Re: Check constraints on partition parents only? Tom Lane <tgl@sss.pgh.pa.us>
Re: Check constraints on partition parents only? Robert Haas <robertmhaas@gmail.com>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>
Re: Check constraints on partition parents only? Robert Haas <robertmhaas@gmail.com>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikkhils@gmail.com>
Re: Check constraints on partition parents only? Robert Haas <robertmhaas@gmail.com>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikkhils@gmail.com>
Re: Check constraints on partition parents only? Tom Lane <tgl@sss.pgh.pa.us>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>
Re: Check constraints on partition parents only? Robert Haas <robertmhaas@gmail.com>
Re: Check constraints on partition parents only? Tom Lane <tgl@sss.pgh.pa.us>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikkhils@gmail.com>
Re: Check constraints on partition parents only? Alvaro Herrera <alvherre@commandprompt.com>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikkhils@gmail.com>
Re: Check constraints on partition parents only? Nikhil Sontakke <nikhil.sontakke@enterprisedb.com>
Re: Check constraints on partition parents only? Tom Lane <tgl@sss.pgh.pa.us>
Re: Check constraints on partition parents only? David Fetter <david@fetter.org>
Re: Check constraints on partition parents only? Jerry Sievers <jerry.sievers@comcast.net>
Re: Check constraints on partition parents only? Jim Nasby <jim@nasby.net>
Re: New partitioning WAS: Check constraints on partition parents only? Josh Berkus <josh@agliodbs.com>
Re: New partitioning WAS: Check constraints on partition parents only? Robert Haas <robertmhaas@gmail.com>
Re: New partitioning WAS: Check constraints on partition parents only? Martijn van Oosterhout <kleptog@svana.org>
Re: New partitioning WAS: Check constraints on partition parents only? Josh Berkus <josh@agliodbs.com>
Re: New partitioning WAS: Check constraints on partition parents only? Aidan Van Dyk <aidan@highrise.ca>
Re: New partitioning WAS: Check constraints on partition parents only? Tom Lane <tgl@sss.pgh.pa.us>
 
> Yeah, I have already hacked it a bit. This constraint now needs to be
> spit out later as an ALTER command with ONLY attached to it
> appropriately. Earlier all CHECK constraints were generally emitted as
> part of the table definition itself.

IIRC, there's already support for splitting out a constraint that way,
in order to deal with circular dependencies.  You just need to treat
this as an additional reason for splitting.


Yeah, I have indeed followed the existing separate printing logic for "ONLY" constraints. Had to make the table dependent on this constraint to print the constraint *after* the table definition. 

Regards,
Nikhils
В списке pgsql-hackers по дате отправления
От: Nikhil Sontakke
Дата:
От: Kevin Grittner
Дата:
Сообщение: Re: cheaper snapshots
FAQ