Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 5DECF9FA2CA for ; Mon, 27 Nov 2006 22:31:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 07769-04 for ; Mon, 27 Nov 2006 22:31:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from dcs.lsd.di.uminho.pt (linux.di.uminho.pt [193.136.19.96]) by postgresql.org (Postfix) with ESMTP id 580E19F9C52 for ; Mon, 27 Nov 2006 22:31:15 -0400 (AST) Received: (qmail 8616 invoked by uid 89); 28 Nov 2006 02:31:14 -0000 Received: by simscan 1.2.0 ppid: 8609, pid: 8612, t: 0.0795s scanners: attach: 1.2.0 clamav: 0.88.3/m:39/d:1638 Received: from unknown (HELO ?192.168.1.4?) (alfranio@lsd.di.uminho.pt@81.84.212.58) by dcs.lsd.di.uminho.pt with ESMTPA; 28 Nov 2006 02:31:14 -0000 Message-ID: <456B9F71.3090202@lsd.di.uminho.pt> Date: Tue, 28 Nov 2006 02:31:13 +0000 From: alfranio correia junior User-Agent: Thunderbird 1.5.0.8 (X11/20061117) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: ParsedStatement Behavior Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/152 X-Sequence-Number: 16194 Please, if there is any archive on this let me know. I was wondering if the reasons to have an specific protocol in order to prepare statements are: 1 - Previous versions of the driver used PREPARE and EXECUTE to implement server-prepared statements. This is supported on all server versions beginning with 7.3, but produced application-visible changes in query results, such as missing ResultSet metadata and row update counts. 2 - The need to transfer strange data types such as circle, point. 3 - To Improve performance as binary data type is usually shorter and avoid converting from text to binary and vice-versa. Disregarding such reasons, might I use "prepare name statement" ? Regards, Alfranio.