Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNBPB-000580-LJ for pgsql-jdbc@arkaria.postgresql.org; Tue, 11 Mar 2014 01:22:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WNBPB-00020t-1d for pgsql-jdbc@arkaria.postgresql.org; Tue, 11 Mar 2014 01:22:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNBPA-00020n-Fy for pgsql-jdbc@postgresql.org; Tue, 11 Mar 2014 01:22:52 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WNBP7-0003sx-FC for pgsql-jdbc@postgresql.org; Tue, 11 Mar 2014 01:22:52 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WNBP5-0004ep-Dx for pgsql-jdbc@postgresql.org; Mon, 10 Mar 2014 18:22:47 -0700 Date: Mon, 10 Mar 2014 18:22:47 -0700 (PDT) From: David Johnston To: pgsql-jdbc@postgresql.org Message-ID: <1394500967424-5795476.post@n5.nabble.com> In-Reply-To: <116262CF971C844FB6E793F8809B51C6B7F025@BPXM02GP.gisp.nec.co.jp> References: <116262CF971C844FB6E793F8809B51C6B7D6BF@BPXM02GP.gisp.nec.co.jp> <116262CF971C844FB6E793F8809B51C6B7F025@BPXM02GP.gisp.nec.co.jp> Subject: Re: A prepared statement ERROR due to EMPTY_QUERY is defined as a static Instance. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.8 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org 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-a-static-Instance-tp5795067p5795476.html 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