Re: Moving sequences to another schema - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Moving sequences to another schema
Date
Msg-id 11195.1119938493@sss.pgh.pa.us
Whole thread Raw
In response to Re: Moving sequences to another schema  (Alvaro Herrera <alvherre@surnet.cl>)
Responses Re: Moving sequences to another schema
List pgsql-hackers
Alvaro Herrera <alvherre@surnet.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


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Problem with dblink regression test
Next
From: Josh Berkus
Date:
Subject: Re: commit_delay, siblings