Re: Plans for index names unique to a table? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Plans for index names unique to a table?
Date
Msg-id 10633.1052620849@sss.pgh.pa.us
Whole thread Raw
In response to Re: Plans for index names unique to a table?  (Don Baccus <dhogaza@pacifier.com>)
List pgsql-hackers
Don Baccus <dhogaza@pacifier.com> writes:
> Indexes, views, tables - all are global namespace thingies and therefore 
> required to be globally unique in SQL.  At least SQL's consistent in its 
> treatment of names.

Actually, indexes do not exist as a concept at all in the SQL standard.
They're swept under the rug as an implementation detail.  So we're quite
on our own to do what we like.

If I were designing in a green field I'd probably make indexes have
table-local names --- but historically they've not been so in Postgres,
and it does not seem worth the work or compatibility hit to change it.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Christopher Browne
Date:
Subject: Re: Plans for index names unique to a table?
Next
From: Christopher Kings-Lynne
Date:
Subject: Return type bug in functions