From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Moshe Jacobson <moshe(at)neadwerx(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Renaming tables and their indexes simultaneously |
Date: | 2012-08-26 19:48:59 |
Message-ID: | 15542.1346010539@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Moshe Jacobson <moshe(at)neadwerx(dot)com> writes:
> I have a stored procedure that renames a table as part of a partitioning
> scheme, then re-creates it.
> Up until recently (I'm not sure what changed), renaming the table would
> cause the pkey index/constraint, as well as all other indexes, to be
> renamed according to the new table name.
Really? AFAICT, we've never done that --- at least not as far back as
7.2, which is as far as I felt like checking.
There did use to be some logic in there that tried to make index column
names track their underlying columns when you renamed a column. But
we gave up on that in 9.0, mainly because of index-expression cases.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2012-08-26 19:52:34 | Re: 9.2 and index only scans |
Previous Message | Pavel Stehule | 2012-08-26 19:42:45 | Re: 9.2 and index only scans |