Re: Pg_dump

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Pg_dump
Дата
Msg-id 20041226174710.GB12115@wolff.to
обсуждение исходный текст
Ответ на Pg_dump  (Gourish Singbal <gourish@gmail.com>)
Ответы Re: Pg_dump
Список pgsql-admin
On Sun, Dec 26, 2004 at 15:39:48 +0530,
  Gourish Singbal <gourish@gmail.com> wrote:
> 1) I want to take a pg_dump of only few tables
>
> /usr/local/pgsql/bin/pg_dump -t [table_name] database_name > file.out
>
> allows me only to take dump of single table. Is there a way to take
> dump of more than one specific tables.

I think this is a new feature for 8.0.

> 2) Does pg_dump allow me to take dump of a table so that only some
> records are included in the dump (Some thing like specifying a QUERY
> in the pg_dump)

I suspect the best way to do this is to create a new table, select the desired
records into that table and then dump it.

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: database permissions:how to create read only user for db
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Pg_dump