Re: BUG #18453: --exclude-database has problems with capital letters - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #18453: --exclude-database has problems with capital letters
Date
Msg-id 1841675.1714523479@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #18453: --exclude-database has problems with capital letters  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-bugs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tuesday, April 30, 2024, PG Bug reporting form <noreply@postgresql.org>
> wrote:
>> I've got a database named Lidar, which I want to exclude from being dumped
>> with pg_dumpall. When I use the following command, the database is not
>> skipped:
>> "C:\Program Files\PostgreSQL\16\bin\pg_dumpall.exe"
>> --exclude-database="Lidar" -U postgres > D:\dumps\pg.dump

> You will need to deal with getting quotes into the pattern while dealing
> with the fact your OS uses quotes for its own purpose.

Yeah.  In a Unix shell something like
    '--exclude-database="Lidar"'
would work, but I'm not up on the quoting rules under Windows.

            regards, tom lane



pgsql-bugs by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: BUG #18453: --exclude-database has problems with capital letters
Next
From: David Rowley
Date:
Subject: Re: BUG #17855: Uninitialised memory used when the name type value processed in binary mode of Memoize