Re: uniqueness and null could benefit from a hint for dba

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: uniqueness and null could benefit from a hint for dba
Дата
Msg-id 20191024143144.GE8650@momjian.us
обсуждение исходный текст
Ответ на Re: uniqueness and null could benefit from a hint for dba  (Tuomas Leikola <tuomas.leikola@gmail.com>)
Ответы Re: uniqueness and null could benefit from a hint for dba  (Tuomas Leikola <tuomas.leikola@gmail.com>)
Список pgsql-docs
On Wed, Oct 23, 2019 at 02:35:02PM +0300, Tuomas Leikola wrote:
> That is a nice design. You can create a regular unique index where columns(s)s
> are not null and then filtered index(es) for the cases where some of the unique
> columns are null.
> 
> However my point, specifically, was that if the document in question would have
> offered alternative solutions, I personally would have been saved from some
> frustration and an exercise in bad index design (I had 5 nullables that need
> uniqueness for the null as well). Maybe it would help someone else.

Uh, I am wondering if it is just too details for our docs.  Can you
think of some text and its location?

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +



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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: wal_sender_timeout / wal_receiver_timeout - seconds or milliseconds?
Следующее
От: PG Doc comments form
Дата:
Сообщение: Instead of using the bloom index, a parallel sequencial scan is used with this example