agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Adrian Klaver <adrian.klaver@aklaver.com>
To: Michael Moore <michaeljmoore@gmail.com>
To: postgres list <pgsql-sql@postgresql.org>
Subject: Re: jdbc and postgresql function session question
Date: Tue, 31 May 2016 15:01:04 -0700
Message-ID: <f96cb0db-79e8-46a8-2baf-42baaae04eb9@aklaver.com> (raw)
In-Reply-To: <CACpWLjNyvDcn4J+2-PFDTOn11BrWJJG6VG65iYEv3oLED5tkyg@mail.gmail.com>
References: <CACpWLjNyvDcn4J+2-PFDTOn11BrWJJG6VG65iYEv3oLED5tkyg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
On 05/31/2016 02:20 PM, Michael Moore wrote:
> When the postgres jdbc driver calls a postgres function, does it get a
> new session every time? If I create a PREPARED statement on the first
> call, will it still be available on the 2nd call? If not, is there any
> way I could get the prepared statement to be used on successive calls?
I think this is going to need more explanation, so:
1) When you say session are you talking about connection or a
transaction? A function will run in its own transaction each time, but
can be run multiple times in a connection.
2) Where is the PREPARED statement being built, in the function or
outside it?
3) Can show an outline of what you are doing?
> TIA,
> Mike\
>
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (4+ messages) latest in thread
Message-ID: <f96cb0db-79e8-46a8-2baf-42baaae04eb9@aklaver.com>
Permalink: ../f96cb0db-79e8-46a8-2baf-42baaae04eb9@aklaver.com/
Also on: postgresql.org/message-id/f96cb0db-79e8-46a8-2baf-42baaae04eb9@aklaver.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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: adrian.klaver@aklaver.com, michaeljmoore@gmail.com
Subject: Re: jdbc and postgresql function session question
In-Reply-To: <f96cb0db-79e8-46a8-2baf-42baaae04eb9@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox