Skip site navigation (1) Skip section navigation (2)

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

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Cc: wstrzalka <wstrzalka(at)gmail(dot)com>
Subject: Re: Windows: pg_dump doesn't recognize -n option
Date: 2008-12-04 12:50:57
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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

In response to


pgsql-bugs by date

Next:From: chris woodDate: 2008-12-04 15:23:30
Subject: question/suggestion
Previous:From: wstrzalkaDate: 2008-12-04 11:03:16
Subject: Windows: pg_dump doesn't recognize -n option

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group