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 1izxPS-0001mC-D1 for pgsql-general@arkaria.postgresql.org; Fri, 07 Feb 2020 06:46:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1izxPP-0002xs-5R for pgsql-general@arkaria.postgresql.org; Fri, 07 Feb 2020 06:46:35 +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 1izxPO-0002w0-PX for pgsql-general@lists.postgresql.org; Fri, 07 Feb 2020 06:46:34 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1izxPM-0001pK-CU for pgsql-general@lists.postgresql.org; Fri, 07 Feb 2020 06:46:34 +0000 Received: by mail-pf1-x42d.google.com with SMTP id y5so755905pfb.11 for ; Thu, 06 Feb 2020 22:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=u0qPwyA639tchTjOSvrVDUtqoegBe7uA+6y4tGyGjy0=; b=l9U+yI/TvUa46L2HGKqC7w7+HsSMLIarPVlTMDUjrIUeWJkehu+F8Eg7SdsrIoRQvr /m468pyfxfJVA9rliR/UID8TWvCUPw6iUmF3gbr2OLowo9ebG72chaF6o8FBAl7frBFh RpkHrKh2EEJlY7mjKT/ckDr0Q5aLCT5djN71kiTlHFwM440HwiaaS7QveMlHUKhT+wOv BjcqaI1CuqacZ2cNye7QQqOqWFANHrsQB+8bNoxYDLlANV8RyLfVagsXJJ5vQ8gX9Wki edGdEeiU8RJa0PgGssjrqN7QDqbD4yz0xtHh793ds9RYdE4exZzdyPXRy0S6RgiRmOMo crKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=u0qPwyA639tchTjOSvrVDUtqoegBe7uA+6y4tGyGjy0=; b=PxWUfsMmZmVY8gP5berPKfdRSn/c4zvxqn6V5bP7obztDHtvpps+y9M3+Dwh9J0PVj OY55mUiDmOdGN4tEAOpgbyYkgmmmBRSxRziPhw3e7x4p5vm4/3bzrodvY181BJzVfA5N 37kzLAOhtTBcVmKNMk29eBV2bU9pNxANqR/jbPuu9/XB7Uzd75DEtNGX8KZtdlRC4HCF /2JKVmoAHjgHyE6DavKWSzJxLMS35qAuv4T1GJjHrf94QZBGMziNmzX8g6L1cRMT7Xbq 1SQqmtVUZFxAUd8gCHJDB+XASTKUxRdWSJFdZ0TAQaTv5RiniLXTmOA7QqwO31ksP3vF Czuw== X-Gm-Message-State: APjAAAUzZZ1UtJzItilTn7cT2/w9JcG7DV5l+jqJxJheIui6t34GCT28 jYjNxxe32UIwEeygvmpKB8IwUfS4 X-Google-Smtp-Source: APXvYqwlUPFrzNHGBiJMBbEkryHfbSRAvlSMB01RoojIw9Bd7sP4YMej0ZkVhASrULrmA+MtAq/IvA== X-Received: by 2002:a63:3dc1:: with SMTP id k184mr1323670pga.103.1581057989991; Thu, 06 Feb 2020 22:46:29 -0800 (PST) Received: from roblaptop (59-102-97-127.tpgi.com.au. [59.102.97.127]) by smtp.gmail.com with ESMTPSA id x23sm1464686pge.89.2020.02.06.22.46.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 22:46:29 -0800 (PST) Message-ID: <1c6aff52e04120962eef422db8f31fb40bd64dc3.camel@gmail.com> Subject: Re: deallocate statement failing From: rob stone To: Tom Lane Cc: pgsql-general@lists.postgresql.org Date: Fri, 07 Feb 2020 17:46:25 +1100 In-Reply-To: <30795.1581054522@sss.pgh.pa.us> References: <30795.1581054522@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1-3 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, 2020-02-07 at 00:48 -0500, Tom Lane wrote: > 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 That worked. Thanks.