pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Johnston <polobo@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: A prepared statement ERROR due to EMPTY_QUERY is defined as a static Instance.
Date: Mon, 10 Mar 2014 18:22:47 -0700 (PDT)
Message-ID: <1394500967424-5795476.post@n5.nabble.com> (raw)
In-Reply-To: <116262CF971C844FB6E793F8809B51C6B7F025@BPXM02GP.gisp.nec.co.jp>
References: <116262CF971C844FB6E793F8809B51C6B7D6BF@BPXM02GP.gisp.nec.co.jp>
	<CADK3HH+_x3FArJfZAfzfLyDqkpRXnZKDdcjS0ARgJ9hBdm=cfw@mail.gmail.com>
	<116262CF971C844FB6E793F8809B51C6B7F025@BPXM02GP.gisp.nec.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Naoya Anzai wrote
> Hi Dave,
> 
> Thanks for your response.
> 
>> Thanks for the patch! Curious how would you ever come across this ?
> 
> This incident was reported by one of our customers.
> So I don't know why their application executes EMPTY_QUERY frequently...
> 
> Regards,

The most obvious reason would be as a keep-alive query...I have no idea
whether that is a wise decision compared to "SELECT 1;" or something that
actually causes the server to perform work (i.e., what does the server do
when it see the empty-string as input?).

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/A-prepared-statement-ERROR-due-to-EMPTY-QUERY-is-defined-as-...
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (6+ messages)  latest in thread

Message-ID: <1394500967424-5795476.post@n5.nabble.com>
Permalink:  ../1394500967424-5795476.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1394500967424-5795476.post@n5.nabble.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-jdbc@postgresql.org
  Cc: polobo@yahoo.com
  Subject: Re: A prepared statement ERROR due to EMPTY_QUERY is defined as a static Instance.
  In-Reply-To: <1394500967424-5795476.post@n5.nabble.com>
  References: <116262CF971C844FB6E793F8809B51C6B7D6BF@BPXM02GP.gisp.nec.co.jp> <CADK3HH+_x3FArJfZAfzfLyDqkpRXnZKDdcjS0ARgJ9hBdm=cfw@mail.gmail.com> <116262CF971C844FB6E793F8809B51C6B7F025@BPXM02GP.gisp.nec.co.jp> <1394500967424-5795476.post@n5.nabble.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