| От | hubert depesz lubaczewski |
|---|---|
| Тема | Is it possible to speed up addition of "not null"? |
| Дата | |
| Msg-id | 20120202114804.GA32371@depesz.com обсуждение исходный текст |
| Ответы |
Re: Is it possible to speed up addition of "not null"?
Re: Is it possible to speed up addition of "not null"? |
| Список | pgsql-general |
I have 8.3 database with non-trivial table (~ 80million rows, but the
rows are just two integers).
I need to add not null on one of the columns, but it seems to require
full table scan.
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*?
i need it to be able to run pg_reorg on this table, which requires pkey,
or unique index on not-null column.
Best regards,
depesz
--
The best thing about modern society is how easy it is to avoid contact with it.
http://depesz.com/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера