Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohefD-0002rB-81 for pgsql-bugs@arkaria.postgresql.org; Sun, 09 Oct 2022 22:20:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ohefB-0008QU-6i for pgsql-bugs@arkaria.postgresql.org; Sun, 09 Oct 2022 22:20:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohefA-0008QL-V9 for pgsql-bugs@lists.postgresql.org; Sun, 09 Oct 2022 22:20:48 +0000 Received: from smtp100.iad3a.emailsrvr.com ([173.203.187.100]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ohef7-0003If-WA for pgsql-bugs@lists.postgresql.org; Sun, 09 Oct 2022 22:20:48 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp5.relay.iad3a.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id B118F23C45; Sun, 9 Oct 2022 18:20:43 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: BUG #17630: pg_dump error From: Christophe Pettus In-Reply-To: <17630-0947c0a5aa573243@postgresql.org> Date: Sun, 9 Oct 2022 15:20:40 -0700 X-Mailbutler-Message-Id: 900ED016-3F11-4FC2-9B14-396676ECDDCF Content-Transfer-Encoding: quoted-printable Message-Id: <3B75DF91-FB87-4580-88CD-AF6B78ABFA80@thebuild.com> References: <17630-0947c0a5aa573243@postgresql.org> To: killerwzb@163.com, PostgreSQL mailing lists X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Classification-ID: 4f9fafc9-d7e2-456f-b3d3-8b6a460d5db1-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Oct 9, 2022, at 02:22, PG Bug reporting form = wrote: > I create table with a upper name ,it is "TABLE2" .I use pg_dump to = dump > the table to a custom file,but i get some error. It's not a bug, but it's kind of an annoying situation. The double = quotes on the command line just delimit the name of the table, but the = shell strips them off (as you would expect), so pg_dump just gets the = bare name. You have to add separate, escaped double-quotes, since the = table name requires them: xof=3D# create table "TABLE2" (i integer); CREATE TABLE xof=3D#=20 \q xof$ pg_dump --dbname=3Dxof --table "TABLE2" > /dev/null pg_dump: error: no matching tables were found xof$ pg_dump --dbname=3Dxof --table "\"TABLE2\"" > /dev/null xof$=20