Re: [BUGS] pgbench -C -M prepared gives an error - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS] pgbench -C -M prepared gives an error
Date
Msg-id 1563.1458181806@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] pgbench -C -M prepared gives an error  (Tatsuo Ishii <ishii@postgresql.org>)
Responses Re: [BUGS] pgbench -C -M prepared gives an error
List pgsql-hackers
Tatsuo Ishii <ishii@postgresql.org> 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



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Performance degradation in commit ac1d794
Next
From: Tatsuo Ishii
Date:
Subject: Re: [BUGS] pgbench -C -M prepared gives an error