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 1ppLWL-0003F5-NU for pgsql-general@arkaria.postgresql.org; Thu, 20 Apr 2023 04:03:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ppLWK-0007e0-LW for pgsql-general@arkaria.postgresql.org; Thu, 20 Apr 2023 04:03:44 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ppLWK-0007dr-AS for pgsql-general@lists.postgresql.org; Thu, 20 Apr 2023 04:03:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ppLWH-000oJI-Nw for pgsql-general@lists.postgresql.org; Thu, 20 Apr 2023 04:03:43 +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 33K43YNe3066834; Thu, 20 Apr 2023 00:03:34 -0400 From: Tom Lane To: Jay Stanley cc: pgsql-general@lists.postgresql.org Subject: Re: Question about accessing partitions whose name includes the schema name and a period - is this correct? In-reply-to: <2ed2c4ff76982806b708e8b9ae428a40@cruzio.com> References: <3024332.1681940550@sss.pgh.pa.us> <2ed2c4ff76982806b708e8b9ae428a40@cruzio.com> Comments: In-reply-to Jay Stanley message dated "Wed, 19 Apr 2023 22:50:29 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3066832.1681963414.1@sss.pgh.pa.us> Date: Thu, 20 Apr 2023 00:03:34 -0400 Message-ID: <3066833.1681963414@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jay Stanley writes: > However, it's failing on partition-management SQL like: > postgres=# alter table my_schema.my_table drop partition > "my_schema"."my_schema.my_table_should_not_work"; > ERROR: syntax error at or near ""my_schema"" > LINE 1: alter table my_schema.my_table drop partition "my_schema"."m... > ^ I'm not sure why the error cursor is pointing there, but "drop partition" is not a valid subcommand. Try "detach partition". regards, tom lane