From: Emils Klotins <emils@grafton.lv>
To: pgsql@orbits.com
Cc: pgsql-sql@hub.org
Subject: Re: renaming columns... danger?
Date: Fri, 27 Oct 2000 11:00:27 +0200
Message-ID: <E13pPtV-00075D-00@orbits.com> (raw)
In-Reply-To: <20001027050141.76502.qmail@web10004.mail.yahoo.com>
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?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: emils@grafton.lv, pgsql@orbits.com, pgsql-sql@hub.org
Subject: Re: renaming columns... danger?
In-Reply-To: <E13pPtV-00075D-00@orbits.com>
References: <20001027050141.76502.qmail@web10004.mail.yahoo.com> <E13pPtV-00075D-00@orbits.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox