Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agSoI-00007m-3a for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Mar 2016 07:57:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1agSoH-0007rZ-MV for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Mar 2016 07:57:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1agSoG-0007ml-Da; Thu, 17 Mar 2016 07:57:32 +0000 Received: from boipeva.ensmp.fr ([194.214.158.136]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agSoD-0005FM-Ev; Thu, 17 Mar 2016 07:57:31 +0000 Received: from cri.ensmp.fr (wifi-mpt-087.paris.ensmp.fr [192.168.152.87]) (authenticated bits=0) by boipeva.ensmp.fr (8.15.2/8.15.1/JMMC-22/Oct/2013) with ESMTPSA id u2H7vPWf018363 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 17 Mar 2016 08:57:25 +0100 Date: Thu, 17 Mar 2016 08:57:24 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@sto To: Tatsuo Ishii cc: tgl@sss.pgh.pa.us, tharakan@gmail.com, PostgreSQL Bugs List , PostgreSQL Developers Subject: Re: [BUGS] pgbench -C -M prepared gives an error In-Reply-To: <20160317.114321.169671826955986940.t-ishii@sraoss.co.jp> Message-ID: References: <20160317.103830.1233779880042690680.t-ishii@sraoss.co.jp> <1563.1458181806@sss.pgh.pa.us> <20160317.114321.169671826955986940.t-ishii@sraoss.co.jp> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at boipeva.ensmp.fr with ID 56EA6365.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 56EA6365.000 from wifi-mpt-087.paris.ensmp.fr/wifi-mpt-087.paris.ensmp.fr/192.168.152.87/cri.ensmp.fr/ X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hello Tatsuo, >> We're not resetting the prepared[] array when we pull the plug on an >> existing connection. >> >> Is a connection per transaction really a sane case to consider? > > Yes, I would think. This case reveals the connection overhead. We > already are able to handle the simple query cases. Why not for > extended query cases? Probably it can be made to work, but it is much less useful to prepare a statement which is known to be needed just once, so I think it would be fine to simply forbid "-M prepared" and "-C" together. -- Fabien. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers