Re: Is it possible to speed up addition of "not null"? - Mailing list pgsql-general

From Florian Weimer
Subject Re: Is it possible to speed up addition of "not null"?
Date
Msg-id 82sjit2uq4.fsf@mid.bfk.de
Whole thread Raw
In response to Is it possible to speed up addition of "not null"?  (hubert depesz lubaczewski <depesz@depesz.com>)
Responses Re: Is it possible to speed up addition of "not null"?  (hubert depesz lubaczewski <depesz@depesz.com>)
List pgsql-general
* hubert depesz lubaczewski:

> I tried with some indexes, but I can't get the time to something
> reasonable, so here is my question: is there any way I could make the
> "not null" constraint *fast*?

You coul patch pg_attribute directly.  I'm not sure if that's still safe
in current versions, though.

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Puzzling full database lock
Next
From: Florian Weimer
Date:
Subject: Re: Puzzling full database lock