Re: Check constraints on partition parents only?

Поиск
Список
Период
Сортировка
Искать
От
Nikhil Sontakke
Тема
Re: Check constraints on partition parents only?
Дата
Msg-id
CANgU5ZfUvsfK-km7kOS+ThxheykU_jWsdD1u9PUC2m_dXxoO0w@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>
Hi,

>>Any preferences for the name?
>> connoinh
>> conisonly
>> constatic or confixed
>
> I'd probably pick conisonly from those choices.
>

The use of "\d" inside psql will show ONLY constraints without any
embellishments similar to normal constraints. E.g.


ALTER TABLE ONLY a ADD CONSTRAINT achk CHECK (FALSE);

ALTER TABLE a ADD CONSTRAINT bchk CHECK (b > 0);

psql=# \d a      Table "public.a"Column |  Type   | Modifiers
--------+---------+-----------b      | integer |
Check constraints:   "achk" CHECK (false)   "bchk" CHECK (b > 0)

Is this acceptable? Or we need to put in work into psql to show ONLY
somewhere in the description? If yes, ONLY CHECK sounds weird, maybe
we should use LOCAL CHECK or some such mention:

Check constraints:   "achk" LOCAL CHECK (false)   "bchk" CHECK (b > 0)

Regards,
Nikhils

В списке pgsql-hackers по дате отправления
От: Florian Pflug
Дата:
От: Robert Haas
Дата:
FAQ