Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id C13826325ED for ; Wed, 14 Apr 2010 17:49:29 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 96760-01 for ; Wed, 14 Apr 2010 20:49:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f209.google.com (mail-bw0-f209.google.com [209.85.218.209]) by mail.postgresql.org (Postfix) with ESMTP id EA2D2632538 for ; Wed, 14 Apr 2010 17:49:18 -0300 (ADT) Received: by bwz1 with SMTP id 1so635282bwz.22 for ; Wed, 14 Apr 2010 13:49:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=qOB9hCG46H4kB07xGp6+g1CPOW2yP1uWKBlv0Xhmujk=; b=Qt0CwJI0uL0jTsNkl+nlCH+6R1mroLqdQxim1mxCFaQWI1dvXCuYw/20OkbUTNnalC 5v3Jq0VgqeKlKW2gPE3tq9WW9tkPkCda1M9II+24MZNEVgdNLped5JeLtwf8ZXwodqZY YR8PI0LSiiB632fsO2HP0U3/NI24pQVQGyrMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rzoG1ECwk3MUJB8yl1yh2smmM1fISUe7m0V3Pw4XYDxmSl5VPJBr1yjVRdTOR/xrHk 1ZVDYgxxD4ZHceBt7pTBpHGdEF3iwjWSltuZBiRGBib7O/jkZty4biLwLvd94vakDO4b 6HNDUK8cu3WzUhuvbASIB1smmfCZZnq+r63RY= MIME-Version: 1.0 Received: by 10.204.69.73 with HTTP; Wed, 14 Apr 2010 13:49:16 -0700 (PDT) Date: Wed, 14 Apr 2010 15:49:16 -0500 Received: by 10.204.5.87 with SMTP id 23mr468544bku.206.1271278156914; Wed, 14 Apr 2010 13:49:16 -0700 (PDT) Message-ID: Subject: JDBC question for PG 8.3.9 From: Dave Crooke To: pgsql-performance Content-Type: multipart/alternative; boundary=00151758ac54f420300484388216 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201004/177 X-Sequence-Number: 38427 --00151758ac54f420300484388216 Content-Type: text/plain; charset=UTF-8 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 --00151758ac54f420300484388216 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi foilks

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

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

Cheers
Dave




--00151758ac54f420300484388216--