From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | Re: pgsql: doc: add examples of creative use of unique expression indexes |
Date: | 2020-04-10 23:21:29 |
Message-ID: | 13031.1586560889@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-docs |
Bruce Momjian <bruce(at)momjian(dot)us> writes:
> I agree with your analysis. I still want to have some mention that
> partial indexes can be used to create single-NULL columns, which might
> be required for compatibility with other databases. Attached is an
> updated patch which removes the previous commit but adds a mention of
> this.
The single-null thing is probably a useful example, but please make
it an actual separate example, or at least its own para outside the
existing <example> sections.
Also, the existing example demonstrating that seems overcomplicated;
why not just
create unique index ... (1) where (foo is null);
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2020-04-11 00:17:09 | Re: pgsql: doc: add examples of creative use of unique expression indexes |
Previous Message | Bruce Momjian | 2020-04-10 21:48:21 | Re: pgsql: doc: add examples of creative use of unique expression indexes |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2020-04-11 00:17:09 | Re: pgsql: doc: add examples of creative use of unique expression indexes |
Previous Message | Bruce Momjian | 2020-04-10 21:48:21 | Re: pgsql: doc: add examples of creative use of unique expression indexes |