Re: Busted(?) optimization in ATAddForeignKeyConstraint

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: Busted(?) optimization in ATAddForeignKeyConstraint
Дата
Msg-id CA+hUKG+KLCKGoFQsfVU-++BU3+0Eodw6PH+HrmA8G9aZK+zCNg@mail.gmail.com
обсуждение исходный текст
Ответ на Busted(?) optimization in ATAddForeignKeyConstraint  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Busted(?) optimization in ATAddForeignKeyConstraint
Список pgsql-hackers
On Fri, Jan 24, 2020 at 11:12 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I happened to notice this comment in the logic in
> ATAddForeignKeyConstraint that tries to decide if it can skip
> revalidating a foreign-key constraint after a DDL change:
>
>              * Since we require that all collations share the same notion of
>              * equality (which they do, because texteq reduces to bitwise
>              * equality), we don't compare collation here.
>
> Hasn't this been broken by the introduction of nondeterministic
> collations?

Similar words appear in the comment for ri_GenerateQualCollation().



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Busted(?) optimization in ATAddForeignKeyConstraint
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: making the backend's json parser work in frontend code