Re: creating index names automatically? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: creating index names automatically?
Date
Msg-id 20091223031731.GI3949@alvh.no-ip.org
Whole thread Raw
In response to Re: creating index names automatically?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: creating index names automatically?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Peter Eisentraut <peter_e@gmx.net> writes:
> >> Could we create an option to create index names automatically, so you'd
> >> only have to write
> 
> >> CREATE INDEX ON foo (a);
> 
> >> which would pick a name like foo_a_idx.
> 
> Having done all the groundwork to support that nicely, I find that it
> doesn't work because of bison limitations :-(.  AFAICT, the only way
> we could support this syntax would be to make ON a reserved word.
> Or at least more reserved than it is now.  We used up all the wiggle
> room we had by making CONCURRENTLY non-reserved.

And here's Simon talking about making CONCURRENTLY more reserved so that
people stop creating indexes named "concurrently" ...

http://database-explorer.blogspot.com/2009/09/create-index-concurrently.html

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: creating index names automatically?
Next
From: Tom Lane
Date:
Subject: Re: creating index names automatically?