Re: Non-colliding auto generated names - Mailing list pgsql-patches

From Tom Lane
Subject Re: Non-colliding auto generated names
Date
Msg-id 23820.1045583876@sss.pgh.pa.us
Whole thread Raw
In response to Re: Non-colliding auto generated names  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-patches
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> If we wanted to stay consistent, then we should be renaming the constraint
> indexes whenever the table is renamed!

I thought about that, too, and I'd be in favor of it if it didn't have
problems of its own.  (The big one being that if the new main-table
name is longer or shorter than the old, you would have to redo the
whole derived-name-generation process, or run into possible truncation
problems.  So it leads to the same kind of loss of predictability I'm
griping about.)

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_avd
Next
From: Olleg Samoylov
Date:
Subject: Re: pg_avd