Re: Bug of ALTER TABLE DROP CONSTRAINT
От | Bruce Momjian |
---|---|
Тема | Re: Bug of ALTER TABLE DROP CONSTRAINT |
Дата | |
Msg-id | 200904072115.n37LF1g16071@momjian.us обсуждение исходный текст |
Ответ на | Re: Bug of ALTER TABLE DROP CONSTRAINT (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
Tom Lane wrote: > Bruce Momjian <bruce@momjian.us> writes: > > Nikhil Sontakke wrote: > >> Warrants an entry in the TODO items list: > >> > >> * make NOT NULL constraints have pg_constraint entries, just like CHECK > >> constraints > > > This is now a TODO item (I just updated the description): > > > Store the constraint names of NOT NULL constraints > > I was intending to do that yesterday, but lost interest after > discovering how many duplicate, obsolete, and/or mutually contradictory > TODO entries there are related to constraints. That needs to be cleaned > up and consolidated sometime. > > Also, what is wrong with the precise statement of the TODO item that > Nikhil gave? The one you gave would encourage someone to waste time on > a 100% wrong implementation (like adding a constraint name column to > pg_attribute). I felt the original wording would be unclear in explaining the problem behavior; you are right the original wording was clearer for correcting the problem. This updated wording works for both audiences, I think: Move NOT NULL constraint information to pg_constraint Currently NOT NULL constraints are stored in pg_attribute withoutanydesignation of their origins, e.g. primary keys. One manifestproblem is that dropping a PRIMARY KEY constraintdoes not remove theNOT NULL constraint designation. *http://archives.postgresql.org/message-id/19768.1238680878@sss.pgh.pa.us -- Bruce Momjian <bruce@momjian.us> http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
В списке pgsql-hackers по дате отправления: