Re: creating index names automatically?
От | Alvaro Herrera |
---|---|
Тема | Re: creating index names automatically? |
Дата | |
Msg-id | 20091223035208.GA4511@alvh.no-ip.org обсуждение исходный текст |
Ответ на | Re: creating index names automatically? ("David E. Wheeler" <david@kineticode.com>) |
Ответы |
Re: creating index names automatically?
|
Список | pgsql-hackers |
David E. Wheeler wrote: > On Dec 22, 2009, at 7:31 PM, Tom Lane wrote: > > > Wait a minute. I must have been looking at the wrong keyword list > > --- ON already is reserved. The problem is exactly that it can't > > tell whether CREATE INDEX CONCURRENTLY ON ... means to default the > > index name or to create an index named CONCURRENTLY. So really the > > *only* way to fix this is to make CONCURRENTLY be at least > > type_func_name_keyword. > > +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. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
В списке pgsql-hackers по дате отправления: