pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Crooke <dcrooke@gmail.com>
To: pgsql-performance <pgsql-performance@postgresql.org>
Subject: JDBC question for PG 8.3.9
Date: Wed, 14 Apr 2010 15:49:16 -0500
Message-ID: <y2xca24673e1004141349l531c9710i5ed197a258d6ca8d@mail.gmail.com> (raw)

Hi foilks

I am using PG 8.3 from Java. I am considering a performance tweak which will
involve holding about 150 java.sql.PreparedStatment objects open against a
single PGSQL connection. Is this safe?

I know that MySQL does not support prepared statements *per se*, and so
their implementation of PreparedStatement is nothing more than some
client-side convenience code that knows how to escape and format constants
for you. Is this the case for PG, or does the PG JDBC driver do the real
thing? I'm assuming if it's just a client side constant escaper that there
won't be an issue.

Cheers
Dave

view thread (4+ messages)  latest in thread

Message-ID: <y2xca24673e1004141349l531c9710i5ed197a258d6ca8d@mail.gmail.com>
Permalink:  ../y2xca24673e1004141349l531c9710i5ed197a258d6ca8d@mail.gmail.com/
Also on:    postgresql.org/message-id/y2xca24673e1004141349l531c9710i5ed197a258d6ca8d@mail.gmail.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-performance@postgresql.org
  Cc: dcrooke@gmail.com
  Subject: Re: JDBC question for PG 8.3.9
  In-Reply-To: <y2xca24673e1004141349l531c9710i5ed197a258d6ca8d@mail.gmail.com>
  References: <y2xca24673e1004141349l531c9710i5ed197a258d6ca8d@mail.gmail.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