X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C8F7852A38 for ; Tue, 19 Jul 2005 16:16:35 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 94696-10 for ; Tue, 19 Jul 2005 19:16:34 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 49E6352A2F for ; Tue, 19 Jul 2005 16:16:33 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j6JJGVhO008614; Tue, 19 Jul 2005 15:16:31 -0400 (EDT) To: Oliver Crosby Cc: "Joshua D. Drake" , pgsql-performance@postgresql.org Subject: Re: Looking for tips In-reply-to: <1efd553a05071912111f6a3121@mail.gmail.com> References: <1efd553a05071910427b290203@mail.gmail.com> <42DD3D55.9020508@commandprompt.com> <1efd553a050719112126b8d981@mail.gmail.com> <8446.1121799660@sss.pgh.pa.us> <1efd553a05071912111f6a3121@mail.gmail.com> Comments: In-reply-to Oliver Crosby message dated "Tue, 19 Jul 2005 15:11:15 -0400" Date: Tue, 19 Jul 2005 15:16:31 -0400 Message-ID: <8613.1121800591@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/316 X-Sequence-Number: 13557 Oliver Crosby writes: >> You could possibly get some improvement if you can re-use prepared plans >> for the queries; but this will require some fooling with the client code >> (I'm not sure if DBD::Pg even has support for it at all). > Aye. We have prepared statements. Ah, but are they really prepared, or is DBD::Pg faking it by inserting parameter values into the query text and then sending the assembled string as a fresh query? It wasn't until about 7.4 that we had adequate backend support to let client libraries support prepared queries properly, and I'm unsure that DBD::Pg has been updated to take advantage of that support. regards, tom lane