Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1izwVd-0008VW-Ep for pgsql-general@arkaria.postgresql.org; Fri, 07 Feb 2020 05:48:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1izwVc-0004f8-3t for pgsql-general@arkaria.postgresql.org; Fri, 07 Feb 2020 05:48:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1izwVb-0004f1-QZ for pgsql-general@lists.postgresql.org; Fri, 07 Feb 2020 05:48:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1izwVS-0001M9-VN for pgsql-general@lists.postgresql.org; Fri, 07 Feb 2020 05:48:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 0175mgD0030796; Fri, 7 Feb 2020 00:48:42 -0500 From: Tom Lane To: rob stone cc: pgsql-general@lists.postgresql.org Subject: Re: deallocate statement failing In-reply-to: References: Comments: In-reply-to rob stone message dated "Fri, 07 Feb 2020 16:02:05 +1100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30794.1581054522.1@sss.pgh.pa.us> Date: Fri, 07 Feb 2020 00:48:42 -0500 Message-ID: <30795.1581054522@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk rob stone writes: > 2020-02-07 15:42:55 AEDT ERROR: syntax error at or near > "'AIT1581050529'" at character 13 > 2020-02-07 15:42:55 AEDT STATEMENT: DEALLOCATE 'AIT1581050529' > The deallocate statement fails. It doesn't matter if it is just > "DEALLOCATE" or "DEALLOCATE PREPARE". I think you want double quotes not single quotes. The argument of DEALLOCATE is an SQL identifier, not a string literal. regards, tom lane