Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 160C39FB32B for ; Tue, 16 Jan 2007 17:16:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 50565-03 for ; Tue, 16 Jan 2007 17:16:27 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with ESMTP id 3D8159FB320 for ; Tue, 16 Jan 2007 17:16:26 -0400 (AST) Received: by mail63.csoft.net (Postfix, from userid 1112) id 915E8F558; Tue, 16 Jan 2007 16:16:25 -0500 (EST) Date: Tue, 16 Jan 2007 16:16:25 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: "Votilla, Mike # Pittsburgh" cc: pgsql-jdbc@postgresql.org Subject: Re: Message / Error Handler In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/104 X-Sequence-Number: 16469 On Tue, 16 Jan 2007, Votilla, Mike # Pittsburgh wrote: > Is there a way to register a message / error handler within my java code > that will capture any messages issued by a RAISE (debug, log, info etc) > command from within a PL/pgSQL user defined function? > There is no specific callback provided, but RAISE output is available via Statement.getWarnings(). You also need to ensure that the level you RAISE at is at least that of client_min_messages to ensure that the server actually sends it to the JDBC driver. Kris Jurka