Patch for pg_dump: Multiple -t options and new -T option

Поиск
Список
Период
Сортировка
От David F. Skoll
Тема Patch for pg_dump: Multiple -t options and new -T option
Дата
Msg-id Pine.LNX.4.58.0407142112520.7150@shishi.roaringpenguin.com
обсуждение исходный текст
Ответы Re: Patch for pg_dump: Multiple -t options and new -T option  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: Patch for pg_dump: Multiple -t options and new -T option  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Attached is a patch against pg_dump version 7.4.3 that permits
multiple "-t" switches so that you can select more than one table (but
less than all) to dump.

It also adds a "-T" switch (long name "--exclude-table") that says
*not* to dump a specific table.  So:

        pg_dump -t table1 -t table2 db

will dump table1 and table2 only, whereas:

        pg_dump -T table1 -T table2 db

will dump all the tables *except* table1 and table2.

Tested briefly on my system; doesn't seem to break anything.

Regards,

David.

--
David F. Skoll <dfs@roaringpenguin.com>    Roaring Penguin Software Inc.
+1 (613) 231-6599 ext. 100                 http://www.roaringpenguin.com/
For CanIt technical support, please mail: support@roaringpenguin.com

Вложения

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: [subxacts] Savepoint syntax
Следующее
От: Christopher Kings-Lynne
Дата:
Сообщение: Re: add missing options to pg_dumpall