uniqueness and null could benefit from a hint for dba

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема uniqueness and null could benefit from a hint for dba
Дата
Msg-id 156760275564.1127.12321702656456074572@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: uniqueness and null could benefit from a hint for dba  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/indexes-unique.html
Description:

Sometimes it is convenient to create an unique index that considers NULL
values equal. Designating a "zero" value for those rows might not be
feasible, for example due to a foreign key.

The documentation currently only states that unique indexes do not consider
NULLs equal. It might be good to offer workarounds, like indexing a coalesce
function, if scans are not the reason for the index, but the uniqueness
constraint.

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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Release notes on "reserved OIDs"
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Release notes on "reserved OIDs"