X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 697C23A5736; Tue, 25 Jan 2005 21:47:22 +0000 (GMT) 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 23800-03; Tue, 25 Jan 2005 21:47:10 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 059CF3A46A0; Tue, 25 Jan 2005 21:47:11 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id j0PLkrH7014031 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 25 Jan 2005 14:46:56 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id j0PLkr85095980; Tue, 25 Jan 2005 14:46:53 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id j0PLkmXI095979; Tue, 25 Jan 2005 14:46:48 -0700 (MST) (envelope-from mfuhr) Date: Tue, 25 Jan 2005 14:46:48 -0700 From: Michael Fuhr To: Christopher Kings-Lynne Cc: Neil Conway , Bojidar Mihajlov , pgsql-hackers@postgresql.org, pgsql-odbc@postgresql.org Subject: Re: [HACKERS] RQ: Prepared statements used by multiple connections Message-ID: <20050125214648.GB95908@winnie.fuhr.org> References: <20050125092707.32541.qmail@web50502.mail.yahoo.com> <41F61367.5060807@familyhealth.com.au> <41F61D42.50804@samurai.com> <41F62132.6070403@familyhealth.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41F62132.6070403@familyhealth.com.au> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/79 X-Sequence-Number: 4874 On Tue, Jan 25, 2005 at 10:36:34AM +0000, Christopher Kings-Lynne wrote: > > > >... a prepared version that is local to the backend that invokes the > >function, yes (i.e. it will be planned once per backend). So ISTM this > >is equivalent functionality to what you can get using PREPARE or the > >extended query protocol. > > Are you sure it's only per-backend? I thought I tested it and it seemed > to prepare it everywhere... oh well. How did you test it? You can use settings like debug_print_plan and client_min_messages to see what's happening in each backend. -- Michael Fuhr http://www.fuhr.org/~mfuhr/