Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agNhU-0006W6-BN for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Mar 2016 02:30:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1agNhT-0004XK-Mm for pgsql-bugs@arkaria.postgresql.org; Thu, 17 Mar 2016 02:30:11 +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 1agNhS-0004W2-Ng; Thu, 17 Mar 2016 02:30:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1agNhQ-0006ub-C8; Thu, 17 Mar 2016 02:30:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2H2U6lL001564; Wed, 16 Mar 2016 22:30:06 -0400 From: Tom Lane To: Tatsuo Ishii cc: tharakan@gmail.com, pgsql-bugs@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [HACKERS] pgbench -C -M prepared gives an error In-reply-to: <20160317.103830.1233779880042690680.t-ishii@sraoss.co.jp> References: <20160317.103830.1233779880042690680.t-ishii@sraoss.co.jp> Comments: In-reply-to Tatsuo Ishii message dated "Thu, 17 Mar 2016 10:38:30 +0900" Date: Wed, 16 Mar 2016 22:30:06 -0400 Message-ID: <1563.1458181806@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Tatsuo Ishii writes: > Sounds like a bug. We should either fix pgbench so that -M and -C can > be used together (I don't see any technical reason why we can't do > this) or modify pgbench to not allow using -M and -C (less desirable). 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? I can certainly understand why bugs in that code path might go undetected for years. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs