Re: Move a table to another schema

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Move a table to another schema
Дата
Msg-id 20031117172428.GD3758@dcc.uchile.cl
обсуждение исходный текст
Ответ на Move a table to another schema  (Lee Kindness <lkindness@csl.co.uk>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Alternative cluster location
Следующее
От: kdebisschop@alert.infoplease.com
Дата:
Сообщение: Re: Alternative cluster location