pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ted Liu <ted_liu@yahoo.com>
To: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: auto_explain logs ERROR: 08P01 for every query using bind variable
Date: Thu, 30 Jan 2020 23:04:57 +0000 (UTC)
Message-ID: <1854294856.1773708.1580425497239@mail.yahoo.com> (raw)
References: <1854294856.1773708.1580425497239.ref@mail.yahoo.com>

To whom it may concern,
For performance and security, most of our queries use bind variables. We also implemented auto_explain for tracking down un-optimized queries. Our database supports a large application. During the work-hours, there are 30,000+ queries executed every hour. PostgreSQL logs rotates every hour and each log contains 30,000+ error message like below.
2020-01-27 00:00:03 UTC:xxx.xx.0.189(35556):xxxxxx@xxxxxxdb:[130756]:ERROR:  ERROR: 08P01: bind message supplies 0 parameters, but prepared statement "..." requires 1 2020-01-27 00:00:03 UTC:xxx.xx.0.189(35558):xxxxxx@xxxxxxdb:[130756]:LOCATION:  exec_bind_message, postgres.c:16012020-01-27 00:00:03 UTC:xxx.xx.0.189(35558):xxxxxx@xxxxxxdb:[130756]:STATEMENT:  EXPLAIN select ...,...,..,... from ... where ....=$1
These error messages are really overwhelming to us and they are not useful at all. In our opinion, these error messages should not be logged. 
Best Regards,
Ted Liu
 

view thread (4+ messages)  latest in thread

Message-ID: <1854294856.1773708.1580425497239@mail.yahoo.com>
Permalink:  ../1854294856.1773708.1580425497239@mail.yahoo.com/
Also on:    postgresql.org/message-id/1854294856.1773708.1580425497239@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: ted_liu@yahoo.com
  Subject: Re: auto_explain logs ERROR: 08P01 for every query using bind variable
  In-Reply-To: <1854294856.1773708.1580425497239@mail.yahoo.com>
  References: <1854294856.1773708.1580425497239.ref@mail.yahoo.com> <1854294856.1773708.1580425497239@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox