From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris Travers <chris@travelamericas.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to completely move a table to another schema?
Date: Wed, 10 Dec 2003 11:12:16 -0500
Message-ID: <6768.1071072736@sss.pgh.pa.us> (raw)
In-Reply-To: <1071041216.2212.73.camel@localhost.localdomain>
References: <1071041216.2212.73.camel@localhost.localdomain>
Chris Travers <chris@travelamericas.com> writes:
> I have a function which moves a table from one schema to another by
> updating the relnamespace field of pg_class:
> Am I missing anything?
pg_constraint entries related to the table.
Also you need to recurse for each index of the table.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, chris@travelamericas.com
Subject: Re: How to completely move a table to another schema?
In-Reply-To: <6768.1071072736@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox