Re: How to copy tables between databases?

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: How to copy tables between databases?
Дата
Msg-id dcc563d10802261300jbe0fdc3yf35afa7e482c60ed@mail.gmail.com
обсуждение исходный текст
Ответ на Re: How to copy tables between databases?  (Brad Nicholson <bnichols@ca.afilias.info>)
Список pgsql-general
On Tue, Feb 26, 2008 at 2:36 PM, Brad Nicholson
<bnichols@ca.afilias.info> wrote:
> On Tue, 2008-02-26 at 15:19 -0500, Kynn Jones wrote:
>  >
>  > Is there a simple way to copy a table from one database to another
>  > without generating an intermediate dump file?
>  >
>
>  pg_dump -t <table name> <source DB> | psql -d <target DB>

Starting around 8.2 you can have > 1 -t switch, and grab a table or a
wildcarded set of tables with each one.

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

Предыдущее
От: Brad Nicholson
Дата:
Сообщение: Re: How to copy tables between databases?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: utf8 issue