Re: Setting a pre-existing index as a primary key - Mailing list pgsql-hackers

From Tino Wildenhain
Subject Re: Setting a pre-existing index as a primary key
Date
Msg-id 4826B8A1.9070504@wildenhain.de
Whole thread Raw
In response to Re: Setting a pre-existing index as a primary key  ("Joshua D. Drake" <jd@commandprompt.com>)
List pgsql-hackers
Joshua D. Drake wrote:
> Tom Lane wrote:
> 
>>> Well it should be optional but it would be nice if we had the option 
>>> to have it renamed per the default... meaning the same output if I 
>>> were to do this:
>>
>> If you want that, you can rename the index (either before or afterwards).
>> I don't see any reason to clutter the make-constraint-from-index command
>> with questions of renaming.
> 
> As a counter point, I don't see any reason to make the DBA's life 
> harder. Sure it is just one step but it is a human step, prone to error 
> and taking more time than it should. Why not just make it easy? 
> Especially when the easy isn't sacrificing data integrity or quality of 
> product?

well the name is by no means a functional problem. Its merely cosmetics,
so if you want propose that a warning is issued to suggest a saner name.

This should be sufficient I think.

T.

pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: another ecpg crash
Next
From: Hans-Juergen Schoenig
Date:
Subject: XIDs and big boxes again ...