From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Andrew Sullivan <ajs@crankycanuck.ca>
Cc: pgsql-sql@postgresql.org
Subject: Re: Move table between schemas
Date: Tue, 16 Nov 2004 14:30:09 +0200 (EET)
Message-ID: <Pine.LNX.4.44.0411161429410.5420-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <20041116110538.GA15247@phlogiston.dyndns.org>
O Andrew Sullivan Ýãñáøå óôéò Nov 16, 2004 :
> On Tue, Nov 16, 2004 at 10:02:34AM +0100, Markus Schaber wrote:
> > Hello,
> >
> > Is there an easy way to move a table to another schema in PostgreSQL 7.4?
> >
> > ALTER TABLE and ALTER SCHEMA don't have this options.
>
> CREATE TABLE newschema.newtable AS SELECT * FROM oldschema.oldtable
>
> oughta work.
What about indexes, constraints, sequences,etc...???
>
> A
>
>
--
-Achilleus
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: achill@matrix.gatewaynet.com, ajs@crankycanuck.ca
Subject: Re: Move table between schemas
In-Reply-To: <Pine.LNX.4.44.0411161429410.5420-100000@matrix.gatewaynet.com>
* 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