Re: relcache sometimes initially ignores has_generated_stored

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: relcache sometimes initially ignores has_generated_stored
Дата
Msg-id a9615ad4-9063-4089-e740-d74b118e984c@2ndquadrant.com
обсуждение исходный текст
Ответ на relcache sometimes initially ignores has_generated_stored  (Andres Freund <andres@anarazel.de>)
Ответы Re: relcache sometimes initially ignores has_generated_stored  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On 2020-01-15 19:11, Andres Freund wrote:
>     /*
>      * Set up constraint/default info
>      */
>     if (has_not_null || ndef > 0 ||
>         attrmiss || relation->rd_rel->relchecks)
> test, i.e. there are no defaults.

> It does still strike me as not great that we can get a different
> relcache entry, even if transient, depending on whether there are other
> reasons to create a TupleConstr. Say a NOT NULL column.
> 
> I'm inclined to think we should just also check has_generated_stored in
> the if quoted above?

Fixed that way.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activityview?
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Internal key management system