Simplest syntax (or a UI?) to rename columns and sequences and constraints (etc)? - Mailing list pgsql-general

From Ken Johanson
Subject Simplest syntax (or a UI?) to rename columns and sequences and constraints (etc)?
Date
Msg-id 47A7FA5E.8040208@kensystem.com
Whole thread Raw
List 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



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: failed to build any 8-way joins: SQLSTATE: XX000 on PostgreSQL 8.2.6
Next
From: Ken Johanson
Date:
Subject: Re: failed to build any 8-way joins: SQLSTATE: XX000 on PostgreSQL 8.2.6