Re: checking rd_rules in RelationBuildDesc

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: checking rd_rules in RelationBuildDesc
Дата
Msg-id 4059872.1669393030@sss.pgh.pa.us
обсуждение исходный текст
Ответ на checking rd_rules in RelationBuildDesc  (Ted Yu <yuzhihong@gmail.com>)
Ответы Re: checking rd_rules in RelationBuildDesc
Список pgsql-hackers
Ted Yu <yuzhihong@gmail.com> writes:
> I wonder if we should check relation->rd_rules after the call
> to RelationBuildRuleLock().

That patch is both pointless and wrong.  There is some
value in updating relhasrules in the catalog, so that future
relcache loads don't uselessly call RelationBuildRuleLock;
but we certainly can't try to do so right there.  That being
the case, making the relcache be out of sync with what's on
disk cannot have any good consequences.  The most likely
effect is that it would block later logic from fixing things
correctly.  There is logic in VACUUM to clean out obsolete
relhasrules flags (see vac_update_relstats), but I suspect
that would no longer work properly if we did this.

            regards, tom lane



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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Non-decimal integer literals
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug in row_number() optimization