| От | Tom Lane |
|---|---|
| Тема | Re: creating index names automatically? |
| Дата | |
| Msg-id | 16250.1261260295@sss.pgh.pa.us обсуждение |
| Ответ на | Re: creating index names automatically? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: creating index names automatically?
|
| Список | pgsql-hackers |
I wrote:
> In the cases where that's sensible, you can use constraint syntax, no?
> I really doubt that it's that easy to pick a sensible name for an index
> on an expression, for example.
Although, having said that, I realize we just opened that can of worms
with the exclusion-constraint patch:
regression=# create table foo (f1 text, exclude (lower(f1) with =));
NOTICE: CREATE TABLE / EXCLUDE will create implicit index "foo_exclusion" for table "foo"
CREATE TABLE
The above behavior seems to need improvement already.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера