pg_dump -t '"Table"' for cmd.exe

Поиск
Список
Период
Сортировка
От Mike Toews
Тема pg_dump -t '"Table"' for cmd.exe
Дата
Msg-id CAM2FmMo5YbxtAa_ZQhP99NqHod=UUyfXoCLrio2DJ344Wb81kQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_dump -t '"Table"' for cmd.exe  (Josh Kupershmidt <schmiddy@gmail.com>)
Re: pg_dump -t '"Table"' for cmd.exe  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-docs
I'm not sure if this is worth documenting, but pg_dumping mixed-case tables with the '-t table' option appears to not be accurately documented for cmd.exe. Here are my four attempts, with only the last as success:

Intuitive (supplying "My Table" like "My Database"), but not correct:
C:\>"C:\Program Files\PostgreSQL\9.1\bin\pg_dump.exe" -U postgres -t "My Table" "My Database"
pg_dump: No matching tables were found

C:\>"C:\Program Files\PostgreSQL\9.1\bin\pg_dump.exe" -U postgres -t '"My Table"' "My Database"
pg_dump: No matching tables were found

Escaping quotes, but using single quotes:
C:\>"C:\Program Files\PostgreSQL\9.1\bin\pg_dump.exe" -U postgres -t '\"My Table\"' "My Database"
pg_dump: too many command-line arguments (first is "My Database")

Escaping quotes, but using double quotes:
C:\>"C:\Program Files\PostgreSQL\9.1\bin\pg_dump.exe" -U postgres -t "\"My Table\"" "My Database"

works!

-Mike

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

Предыдущее
От: Louis-Claude Canon
Дата:
Сообщение: Incomplete compatibility information for triggers
Следующее
От: Josh Kupershmidt
Дата:
Сообщение: Re: pg_dump -t '"Table"' for cmd.exe