Re: [GENERAL] plpgsql function with RETURNS SETOF refcursor in JAVA

From: Kevin Grittner <kgrittn(at)gmail(dot)com>
To: "Corradini, Carlos" <CCorradini(at)correoargentino(dot)com(dot)ar>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, Kris Jurka <books(at)ejurka(dot)com>
Subject: Re: [GENERAL] plpgsql function with RETURNS SETOF refcursor in JAVA
Date: 2015-12-11 21:53:31
Message-ID: CACjxUsNvUJSFxf0bnd6P+Wh9gHtd3KddUyYVhGyjHtg_c19e+w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc

On Fri, Dec 11, 2015 at 2:11 PM, Corradini, Carlos
<CCorradini(at)correoargentino(dot)com(dot)ar> wrote:

> with your and Mr. Kevin explanations, the Java
> program have worked fine and have printed the data obtained from a two
> cursors inside a PostgreSQL Database Stored Function.
>
> Then, I can confirm that this version of DB ( 9.4 ) use the OUT
> parameter with refcursors and works fine. The JDBC interface provided by
> the Server Postgresql can read the data inserted into these two cursors
> via a callablestatement.registeroutparameter.

For the benefit of others who may later have a similar problem and
find this thread, it would be great if you could provide a little
self-contained example of a Java program which uses the technique
that you settled on.

Thanks!

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kevin Grittner 2015-12-11 22:13:21 Re: connections not getting closed on a replica
Previous Message David Steele 2015-12-11 21:50:36 Re: Complete Recovery 9.4.4

Browse pgsql-jdbc by date

  From Date Subject
Next Message Corradini, Carlos 2015-12-14 13:14:02 Re: [GENERAL] plpgsql function with RETURNS SETOF refcursor in JAVA
Previous Message Corradini, Carlos 2015-12-11 20:11:50 Re: [GENERAL] plpgsql function with RETURNS SETOF refcursor in JAVA