Re: duplicating tables (accross databases)

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: duplicating tables (accross databases)
Дата
Msg-id m3bsg14zc0.fsf@varsoon.denali.to
обсуждение исходный текст
Ответ на duplicating tables (accross databases)  (Jim Martinez <jjm@bigbigorg.org>)
Список pgsql-general
Jim Martinez <jjm@bigbigorg.org> writes:

> > I know this will seem silly, but I'm trying to
> > make a copy of a table with a few modifications.
>
> A variation on the above:
>
> Suppose I create and populate a table called people in the test database
> and I want to move it to another database called production.  How can a
> query across the schema?  And schema may not be the correct word.

Schema is in fact the correct word (it's in the SQL standard).

Schemas are currently not implemented in PostgreSQL.  They are on the
TODO list for a future version.

You'll have to use two different databases and use pg_dump/psql to
move the data, or write custom client code to do so.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: URGENT: pg_dump & Postgres 7.2b4
Следующее
От: will trillich
Дата:
Сообщение: question about locking (and documentation thereof)