Re: Moving sequences to another schema

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)surnet(dot)cl>
Cc: Bernd Helmle <mailings(at)oopsware(dot)de>, PostgreSQL-Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Moving sequences to another schema
Date: 2005-06-28 06:01:33
Message-ID: 11195.1119938493@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)surnet(dot)cl> writes:
> I think this is done by AddRelationRawConstraints. You'd have to get
> the parsetree of the default expression. I think you could get that by
> applying raw_parser() to pg_attrdef.adsrc.

Not adsrc --- that's not trustworthy.

In practice I think you could just assume you know what the default
expression ought to be, and store a new one without looking at the old.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kenneth Gonsalves 2005-06-28 06:41:29 Re: ENUM like data type
Previous Message Tom Lane 2005-06-28 05:31:20 Re: Users/Groups -> Roles