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 1sMqgT-0050ku-5d for pgsql-admin@arkaria.postgresql.org; Thu, 27 Jun 2024 15:05:13 +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 1sMqgQ-00AhHH-Mf for pgsql-admin@arkaria.postgresql.org; Thu, 27 Jun 2024 15:05:11 +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 1sMqgQ-00AhH9-C5 for pgsql-admin@lists.postgresql.org; Thu, 27 Jun 2024 15:05:10 +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 1sMqgO-003q2C-2X for pgsql-admin@lists.postgresql.org; Thu, 27 Jun 2024 15:05:10 +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 45RF52ED1734114; Thu, 27 Jun 2024 11:05:02 -0400 From: Tom Lane To: Ron Johnson cc: Pgsql-admin Subject: Re: Incorrect syntax when restoring a single table In-reply-to: References: Comments: In-reply-to Ron Johnson message dated "Thu, 27 Jun 2024 10:01:42 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1734112.1719500702.1@sss.pgh.pa.us> Date: Thu, 27 Jun 2024 11:05:02 -0400 Message-ID: <1734113.1719500702@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Ron Johnson writes: > $ pg_restore -v -a -t tapschema.batch_rp4_y2022m08 -Fd --dbname=tap tap I think what you have to do is write -n tapschema -t batch_rp4_y2022m08 regards, tom lane