Re: Is it possible to speed up addition of "not null"?

Поиск
Список
Период
Сортировка
От Florian Weimer
Тема Re: Is it possible to speed up addition of "not null"?
Дата
Msg-id 82sjit2uq4.fsf@mid.bfk.de
обсуждение исходный текст
Ответ на Is it possible to speed up addition of "not null"?  (hubert depesz lubaczewski <depesz@depesz.com>)
Ответы Re: Is it possible to speed up addition of "not null"?  (hubert depesz lubaczewski <depesz@depesz.com>)
Список 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 по дате отправления:

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Puzzling full database lock
Следующее
От: Florian Weimer
Дата:
Сообщение: Re: Puzzling full database lock