Re: renaming columns... danger? - Mailing list pgsql-sql

From Emils Klotins
Subject Re: renaming columns... danger?
Date
Msg-id 39F9604B.10625.28D2CFDA@localhost
Whole thread Raw
In response to renaming columns... danger?  (Michael Teter <michael_teter@yahoo.com>)
List pgsql-sql
Subject:            [SQL] renaming columns... danger?

> I just discovered that doing an alter table ... alter
> column (to rename a column) does not do a complete
> rename throughout the database.

> shouldn't rename update any index and key definitions?

> I'm very frightened right now, because I'm rather
> dependent upon my database right now.  I don't like
> the thought that my database is corrupt at the schema
> level.
> 
Yes, I believe the same is true about trigger definitions and 
suchlike. 
In short - to do a rename on column I do a pg_dumpall and change 
all references of the name by hand :*(((

Btw, is there a way to see what triggers are defined for particular 
field? Or how to drop triggers, which (by default) are unnamed?




pgsql-sql by date:

Previous
From: Daniel Kalchev
Date:
Subject: except on nulls?
Next
From: Grant Finnemore
Date:
Subject: Re: renaming columns... danger?