Re: Moving sequences to another schema

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Bernd Helmle <mailings(at)oopsware(dot)de>
Cc: PostgreSQL-Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Moving sequences to another schema
Date: 2005-06-28 01:38:56
Message-ID: 42C0AA30.7060304@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> When altering a sequence created by a SERIAL column type (i do this by
> examining pg_depend to avoid moving any other sequences that are
> 'foreign'), i need to recreate the default expression for the SERIAL
> column (stored in pg_attrdef.adbin). Is there an API to do that, or do i
> have to recreate the executable expression tree from scratch? Or am i
> missing something completely...

Does ALTER TABLE/RENAME code help you? You can rename sequences with
that...

Chris

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Browne 2005-06-28 02:20:38 Re: Implementing SQL/PSM for PG 8.2
Previous Message Christopher Kings-Lynne 2005-06-28 01:37:49 Re: GiST concurrency commited