Re: Move a table to another schema - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Move a table to another schema
Date
Msg-id 20031117172428.GD3758@dcc.uchile.cl
Whole thread Raw
In response to Move a table to another schema  (Lee Kindness <lkindness@csl.co.uk>)
List pgsql-general
On Mon, Nov 17, 2003 at 04:05:04PM +0000, Lee Kindness wrote:
> I have many tables created in the "public" schema and I would like to
> migrate these into an "x001" schema. Unfortunately there is no ALTER
> TABLE construct for this... The following SQL would seem to move the
> "zxc" table from "public.zxc" to "x001.zxc":

You have to move all indexes, constraints, the type, etc too.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"There was no reply" (Kernel Traffic)

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Alternative cluster location
Next
From: kdebisschop@alert.infoplease.com
Date:
Subject: Re: Alternative cluster location