Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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


pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group