Re: Windows: pg_dump doesn't recognize -n option

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Windows: pg_dump doesn't recognize -n option
Дата
Msg-id 200812041450.57939.peter_e@gmx.net
обсуждение исходный текст
Ответ на Windows: pg_dump doesn't recognize -n option  (wstrzalka <wstrzalka@gmail.com>)
Список pgsql-bugs
On Thursday 04 December 2008 13:03:16 wstrzalka wrote:
> This is my output on Windows:
> ---------------------------------------------------------------------------
>---------------------------------

> D:\Code>pg_dump -U postgres -d test -n public
> pg_dump: too many command-line arguments (first is "-n")
> Try "pg_dump --help" for more information.

The -d option doesn't take an argument.  (It does not mean database.)
Hence 'test' is the first non-option argument, and everything after that is
also interpreted as non-option argument (unless you use GNU getopt).

What you appear to want should be written as

pg_dump -U postgres -n public test

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

Предыдущее
От: wstrzalka
Дата:
Сообщение: Windows: pg_dump doesn't recognize -n option
Следующее
От: "chris wood"
Дата:
Сообщение: question/suggestion