Re: pgsql: doc: add examples of creative use of unique expressionindexes
Вложения
В списке pgsql-committers по дате отправления:
| От | Bruce Momjian |
|---|---|
| Тема | Re: pgsql: doc: add examples of creative use of unique expressionindexes |
| Дата | |
| Msg-id | 20200411001709.GD24988@momjian.us обсуждение |
| Ответ на | Re: pgsql: doc: add examples of creative use of unique expression indexes (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-committers |
On Fri, Apr 10, 2020 at 07:21:29PM -0400, Tom Lane wrote: > Bruce Momjian <bruce@momjian.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); I ended up using "true" since that is ony one byte; patch attached. -- Bruce Momjian <bruce@momjian.us> https://momjian.us EnterpriseDB https://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера