Simplest syntax (or a UI?) to rename columns and sequences and constraints (etc)?

From: Ken Johanson <pg-user(at)kensystem(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Simplest syntax (or a UI?) to rename columns and sequences and constraints (etc)?
Date: 2008-02-05 05:55:42
Message-ID: 47A7FA5E.8040208@kensystem.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there a SQL/ALTER (pg proprietary or otherwise) syntax that uniformly
changes the names off all object tied to a column when that column name
is changed? Or can anyone recommend a UI that does this?

For example in a table 'foo' I have a 'rowid' (pk and auto increment)
and I choose to rename it. The default naming convention given to the
supporting sequence is 'foo_rowid_seq', so (ignoring safely/ambiguity
issues) is it possible rename 'rowid' and have the changes cascade to
sequences, constraints, etc?

Ken

Browse pgsql-general by date

  From Date Subject
Next Message Ken Johanson 2008-02-05 06:06:48 Re: failed to build any 8-way joins: SQLSTATE: XX000 on PostgreSQL 8.2.6
Previous Message Tom Lane 2008-02-05 05:52:22 Re: failed to build any 8-way joins: SQLSTATE: XX000 on PostgreSQL 8.2.6