pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Tatsuo Ishii <ishii@postgresql.org>
Cc: tgl@sss.pgh.pa.us, tharakan@gmail.com, PostgreSQL Bugs List <pgsql-bugs@postgresql.org>
Cc: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Subject: Re: [BUGS] pgbench -C -M prepared gives an error
Date: Thu, 17 Mar 2016 08:57:24 +0100 (CET)
Message-ID: <alpine.DEB.2.10.1603170853230.22499@sto> (raw)
In-Reply-To: <20160317.114321.169671826955986940.t-ishii@sraoss.co.jp>
References: <CAEP4nAwqG-XufE95gpCs2dpxmV7579c3AWjgEpW=xAE7+44_cw@mail.gmail.com>
	<20160317.103830.1233779880042690680.t-ishii@sraoss.co.jp>
	<1563.1458181806@sss.pgh.pa.us>
	<20160317.114321.169671826955986940.t-ishii@sraoss.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>


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



view thread (9+ messages)  latest in thread

Message-ID: <alpine.DEB.2.10.1603170853230.22499@sto>
Permalink:  ../alpine.DEB.2.10.1603170853230.22499@sto/
Also on:    postgresql.org/message-id/alpine.DEB.2.10.1603170853230.22499@sto

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: coelho@cri.ensmp.fr, ishii@postgresql.org, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] pgbench -C -M prepared gives an error
  In-Reply-To: <alpine.DEB.2.10.1603170853230.22499@sto>
  References: <CAEP4nAwqG-XufE95gpCs2dpxmV7579c3AWjgEpW=xAE7+44_cw@mail.gmail.com> <20160317.103830.1233779880042690680.t-ishii@sraoss.co.jp> <1563.1458181806@sss.pgh.pa.us> <20160317.114321.169671826955986940.t-ishii@sraoss.co.jp> <alpine.DEB.2.10.1603170853230.22499@sto>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox