Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1xsf-00GNYH-71 for pgsql-bugs@arkaria.postgresql.org; Wed, 01 May 2024 00:31:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s1xsb-009VXQ-C9 for pgsql-bugs@arkaria.postgresql.org; Wed, 01 May 2024 00:31:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1xsb-009VXH-3i for pgsql-bugs@lists.postgresql.org; Wed, 01 May 2024 00:31:26 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s1xsX-000vZS-EU for pgsql-bugs@lists.postgresql.org; Wed, 01 May 2024 00:31:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4410VJoH1841676; Tue, 30 Apr 2024 20:31:19 -0400 From: Tom Lane To: "David G. Johnston" cc: "jernej-s31+pg@simoncic.si" , "pgsql-bugs@lists.postgresql.org" Subject: Re: BUG #18453: --exclude-database has problems with capital letters In-reply-to: References: <18453-cd8d475eaca334be@postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Tue, 30 Apr 2024 17:09:29 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1841674.1714523479.1@sss.pgh.pa.us> Date: Tue, 30 Apr 2024 20:31:19 -0400 Message-ID: <1841675.1714523479@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Tuesday, April 30, 2024, PG Bug reporting form > 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