Re: ALTER TABLE...ALTER COLUMN vs inheritance
От
Tom Lane
Тема
Re: ALTER TABLE...ALTER COLUMN vs inheritance
Дата
Msg-id
18798.1258067245@sss.pgh.pa.us
Ответ на
Re: ALTER TABLE...ALTER COLUMN vs inheritance (Alex Hunsaker)
Список
Дерево обсуждения
ALTER TABLE...ALTER COLUMN vs inheritance Bernd Helmle <mailings@oopsware.de>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Bernd Helmle <mailings@oopsware.de>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Selena Deckelmann <selenamarie@gmail.com>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Bernd Helmle <mailings@oopsware.de>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Bernd Helmle <mailings@oopsware.de>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Bernd Helmle <mailings@oopsware.de>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Bernd Helmle <mailings@oopsware.de>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Bernd Helmle <mailings@oopsware.de>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Alex Hunsaker <badalex@gmail.com>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Alex Hunsaker <badalex@gmail.com>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Tom Lane <tgl@sss.pgh.pa.us>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Alex Hunsaker <badalex@gmail.com>
Re: ALTER TABLE...ALTER COLUMN vs inheritance Bernd Helmle <mailings@oopsware.de>
Alex Hunsaker writes: > On Thu, Nov 12, 2009 at 13:55, Tom Lane wrote: >> I'd go for the first of those, for sure. Testing attnotnull is >> significantly cheaper than enforcing a generic constraint expression, >> and NOT NULL is a sufficiently common case to be worth worrying about >> optimizing it. > When I looked at doing this, I thought about just using check > constraints just for the book keeping and leaving attnotnull as it is. Yeah, you could definitely attack it like that. The code that fixes up attnotnull would have to look for check constraints that look like "foo NOT NULL" rather than something more instantly recognizable, but presumably ALTER TABLE is not a performance-critical path. regards, tom lane
В списке pgsql-hackers по дате отправления