Re: Problems with renaming a column

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rod Taylor <rbt(at)rbt(dot)ca>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Problems with renaming a column
Date: 2003-06-02 18:00:50
Message-ID: 9828.1054576850@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rod Taylor <rbt(at)rbt(dot)ca> writes:
> As you can see below, after a rename the check constraint still refers
> to 'col' and not 'newname' as pg_constraint.consrc is not updated.

The same issue has always existed with regard to pg_attrdef.adsrc.
pg_dump ought to be using the binary column not the source column, just
as it does for default expressions.

> It seems this is a problem in 7.3 as well. I believe the solution is to
> outright remove consrc, and enable the interface to request a text
> version of conbin on the fly.

I do not think we need to remove the column.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2003-06-02 18:04:01 Re: Proposal for Re-ordering CONF (was: Re: GUC and postgresql.conf docs)
Previous Message Bruce Momjian 2003-06-02 17:57:47 Re: Status during copy [patch]