Re: Domain check taking place unnecessarily?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Domain check taking place unnecessarily?
Дата
Msg-id 3893890.1675955401@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Domain check taking place unnecessarily?  (Mark Hills <mark@xwax.org>)
Ответы Re: Domain check taking place unnecessarily?  (Mark Hills <mark@xwax.org>)
Список pgsql-performance
Mark Hills <mark@xwax.org> writes:
> On Wed, 8 Feb 2023, Laurenz Albe wrote:
>> It takes 30 seconds to schan the table and determine that all existing 
>> rows satisky the constraint.

> But there's no existing data (note this is adding column, not constraint)

> Existing rows are guaranteed to satisfy the domain check, because the 
> domain check is guaranteed to be immutable (per [1] in my original mail)

immutable != "will accept null".

There could be some more optimizations here, perhaps, but there aren't.

            regards, tom lane



В списке pgsql-performance по дате отправления:

Предыдущее
От: Mark Hills
Дата:
Сообщение: Re: Domain check taking place unnecessarily?
Следующее
От: Benjamin Tingle
Дата:
Сообщение: Re: Window Functions & Table Partitions