JDBC question for PG 8.3.9 - Mailing list pgsql-performance

From Dave Crooke
Subject JDBC question for PG 8.3.9
Date
Msg-id y2xca24673e1004141349l531c9710i5ed197a258d6ca8d@mail.gmail.com
Whole thread Raw
Responses Re: JDBC question for PG 8.3.9  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-performance
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




pgsql-performance by date:

Previous
From: Krzysztof Kardas
Date:
Subject: Re: PostgreSQL with Zabbix - problem of newbe
Next
From: Bruce Momjian
Date:
Subject: Re: Occasional giant spikes in CPU load