Re: Move table between schemas

From: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Move table between schemas
Date: 2004-11-16 12:30:09
Message-ID: Pine.LNX.4.44.0411161429410.5420-100000@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message sad 2004-11-16 13:08:17 Re: tree structure photo gallery date quiery
Previous Message Gary Stainburn 2004-11-16 11:29:46 tree structure photo gallery date quiery