Re: creating index names automatically?

A. Kretschmer <andreas.kretschmer@schollglas.com>

From: "A. Kretschmer" <andreas.kretschmer@schollglas.com>
To: pgsql-hackers@postgresql.org
Date: 2009-12-19T21:30:42Z
Lists: pgsql-hackers
In response to Peter Eisentraut :
> 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.  We already do this in a number
> of places such as constraint names and sequences without much trouble.
> In most cases you don't really need to give an index a smart name since
> the purpose is obvious.
> 
> Comments?

+1, as an additional option, only if no index-name specified.


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431  2EB0 389D 1DC2 3172 0C99