From: | Lee Kindness <lkindness(at)csl(dot)co(dot)uk> |
---|---|
To: | Shridhar Daithankar <shridhar_daithankar(at)persistent(dot)co(dot)in> |
Cc: | Lee Kindness <lkindness(at)csl(dot)co(dot)uk>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Move a table to another schema |
Date: | 2003-11-18 09:13:18 |
Message-ID: | 16313.58030.741345.972265@kelvin.csl.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Shridhar,
Shridhar Daithankar writes:
> 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":
>
> Why not just rename the schema itself? You can recreate a public
> schema later..:-)
>
> Simple, isn't it? (Unless public is a specieal schema)
Thanks Shridhar - it's good when someone has a different angle on
things!
Of course I'm using 7.3, so there is no ALTER SCHEMA - but the
catalogue magic required to rename a single schema will be a lot less
than renaming 100s of tables, indices and views!
L.
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel N. Shtanko | 2003-11-18 09:27:43 | Error during check |
Previous Message | Alex | 2003-11-18 08:54:38 | Quoting Problem in PLPGSQL |