Re: creating index names automatically?
От | Greg Stark |
---|---|
Тема | Re: creating index names automatically? |
Дата | |
Msg-id | 407d949e0912230337l50f5547au7a91a96c75c368d7@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: creating index names automatically? (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: creating index names automatically?
|
Список | pgsql-hackers |
On Wed, Dec 23, 2009 at 3:54 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > Alvaro Herrera <alvherre@commandprompt.com> writes: >> David E. Wheeler wrote: >>> +1 if it prevents indexes from being named "CONCURRENTLY". > >> Yeah, if you really want to have an index named like that you can use >> double quotes. Seems a sensible compromise. > > Well, this will also break tables and columns named "concurrently". > I think the odds of it being a problem are small, but still it is > a reserved word that shouldn't be reserved according to the SQL spec. I suppose we could fix this by specifying a precedence and then explicitly checking if you're trying to make an index named concurrently and fixing it up later. Not unlike how you suggested we avoid making WITH a reserved word with the comment that there was more than one way to skin a cat -- greg
В списке pgsql-hackers по дате отправления: