Re: Move a table to another schema
Alvaro Herrera <alvherre@dcc.uchile.cl>
From: Alvaro Herrera <alvherre@dcc.uchile.cl>
To: Lee Kindness <lkindness@csl.co.uk>
Cc: pgsql-general@postgresql.org
Date: 2003-11-17T17:24:28Z
Lists: 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)