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

From: wstrzalka <wstrzalka(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Windows: pg_dump doesn't recognize -n option
Date: 2008-12-04 18:59:16
Message-ID: 610661b5-1230-4581-8d49-4d0569f1b020@d14g2000yqb.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Right. I mixed the input params.

The confusion comes from fact that I'm used to use Linux version which
never complained and worked as expected (besides the extra -d
parameter :D )

On 4 Gru, 13:50, pete(dot)(dot)(dot)(at)gmx(dot)net (Peter Eisentraut) wrote:
> 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
>
> --
> Sent via pgsql-bugs mailing list (pgsql-b(dot)(dot)(dot)(at)postgresql(dot)org)
> To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-bugs

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Eugene Pimenov 2008-12-05 10:57:29 BUG #4563: Translation of errors.
Previous Message John R Pierce 2008-12-04 18:38:45 Re: question/suggestion