Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4xB4-0007Wj-EB for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Aug 2013 18:00:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V4xB3-0005zZ-R3 for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Aug 2013 18:00:41 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4xB2-0005yc-Qm for pgsql-bugs@postgresql.org; Thu, 01 Aug 2013 18:00:40 +0000 Received: from smtp.01.com ([199.36.142.181] helo=smtp-out-1.01.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V4xAw-0006JX-EK for pgsql-bugs@postgresql.org; Thu, 01 Aug 2013 18:00:40 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 0F35D2940E3; Thu, 1 Aug 2013 13:00:34 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp-out-1.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2yxKboSG-LRB; Thu, 1 Aug 2013 13:00:33 -0500 (CDT) Received: from smtp-out-1.01.com (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id E3A0E29408A; Thu, 1 Aug 2013 13:00:33 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id D64332941C5; Thu, 1 Aug 2013 13:00:33 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp-out-1.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9rbGtpppFZA3; Thu, 1 Aug 2013 13:00:33 -0500 (CDT) Received: from [172.47.23.103] (70-36-143-10.dsl.dynamic.sonic.net [70.36.143.10]) by smtp-out-1.01.com (Postfix) with ESMTPSA id 67AC62940A7; Thu, 1 Aug 2013 13:00:32 -0500 (CDT) Message-ID: <51FAA23D.40007@agliodbs.com> Date: Thu, 01 Aug 2013 11:00:29 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Mark Kirkwood CC: pgsql-bugs@postgresql.org, Greg Smith Subject: Re: pgBench cannot use prepared statements and reconnections References: <51F98AC4.1060208@agliodbs.com> <51F99906.7040708@catalyst.net.nz> <51F9999F.2030909@catalyst.net.nz> In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 07/31/2013 04:11 PM, Mark Kirkwood wrote: > Hmmm, apologies - actually it didn't - I read right past the text > > ERROR: prepared statement "P0_7" does not exist > Yah. It's quite possible that the answer is to explicitly disallow this -- the only reason I even tried it is that I was testing for a PostgreSQL bug -- but we should fail gracefully, e.g. "Use of prepared statements with pgbench requires persistent connections. You may not use the -C and -m prepared options together". -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs