| От | Tom Lane |
|---|---|
| Тема | Re: index naming conventions |
| Дата | |
| Msg-id | 29939.999752832@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | index naming conventions (Joseph Shraibman <jks@selectacast.net>) |
| Список | pgsql-general |
Joseph Shraibman <jks@selectacast.net> writes:
> playpen=# create table jm(
> playpen(# jid int NOT NULL,
> playpen(# mid int ,
> playpen(# UNIQUE(jid, mid)
> playpen(# );
> NOTICE: CREATE TABLE/UNIQUE will create implicit index 'jm_jid_key' for table 'jm'
> CREATE
> Why isn't the index created called 'jm_jid_mid_key' ?
Laziness, mainly. There's a subroutine in the parser that's responsible
for forming these names and doing truncation if they are too long. It
only handles three name components (table, field, and "_key" suffix) at
the moment. Feel free to submit a patch that makes it smarter...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера