From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | rob stone <floriparob(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: deallocate statement failing |
Date: | 2020-02-07 05:15:03 |
Message-ID: | 22d8c147-bd38-a469-807a-9958bfeac9ce@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 2/6/20 9:02 PM, rob stone wrote:
> Hello,
>
> Version:-
>
>
> PostgreSQL 12.1 (Debian 12.1-2) on x86_64-pc-linux-gnu, compiled by gcc
> (Debian 9.2.1-22) 9.2.1 20200104, 64-bit
>
> Log:-
>
> 2020-02-07 15:42:55 AEDT LOG: statement: SELECT COUNT(*) AS ps_count
> FROM pg_prepared_statements WHERE name = 'AIT1581050529'
> 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'
>
Try:
DEALLOCATE AIT1581050529;
>
> The deallocate statement fails. It doesn't matter if it is just
> "DEALLOCATE" or "DEALLOCATE PREPARE".
> We put in the count statement to make sure the prepared statement still
> existed and only issued the "DEALLOCATE" if ps_count is greater then
> zero.
>
> Does anybody know why it is giving this syntax error?
>
> TIA,
> Rob
>
>
>
>
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2020-02-07 05:48:42 | Re: deallocate statement failing |
Previous Message | rob stone | 2020-02-07 05:02:05 | deallocate statement failing |