pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedpgBench cannot use prepared statements and reconnections
4+ messages / 2 participants
[nested] [flat]
* pgBench cannot use prepared statements and reconnections
@ 2013-07-31 22:08 Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 4+ messages in thread
From: Josh Berkus @ 2013-07-31 22:08 UTC (permalink / raw)
To: pgsql-bugs; +Cc: Greg Smith <greg@2ndQuadrant.com>
To wit:
[jberkus@pgx-test prepare]$ pgbench -c 4 -C -T 180 -l -r -M prepared bench
starting vacuum...end.
Client 1 aborted in state 7: ERROR: prepared statement "P0_7" does not
exist
Client 0 aborted in state 7: ERROR: prepared statement "P0_7" does not
exist
Client 3 aborted in state 7: ERROR: prepared statement "P0_7" does not
exist
Client 2 aborted in state 7: ERROR: prepared statement "P0_7" does not
exist
transaction type: TPC-B (sort of)
--
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgBench cannot use prepared statements and reconnections
@ 2013-07-31 23:08 Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
parent: Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 4+ messages in thread
From: Mark Kirkwood @ 2013-07-31 23:08 UTC (permalink / raw)
To: Josh Berkus <josh@agliodbs.com>; +Cc: pgsql-bugs; Greg Smith <greg@2ndQuadrant.com>
On 01/08/13 10:08, Josh Berkus wrote:
>
> To wit:
>
> [jberkus@pgx-test prepare]$ pgbench -c 4 -C -T 180 -l -r -M prepared bench
> starting vacuum...end.
> Client 1 aborted in state 7: ERROR: prepared statement "P0_7" does not
> exist
> Client 0 aborted in state 7: ERROR: prepared statement "P0_7" does not
> exist
> Client 3 aborted in state 7: ERROR: prepared statement "P0_7" does not
> exist
> Client 2 aborted in state 7: ERROR: prepared statement "P0_7" does not
> exist
> transaction type: TPC-B (sort of)
>
Strange - work for me (9.4devel pulled just now).
Cheers
Mark
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgBench cannot use prepared statements and reconnections
@ 2013-07-31 23:11 Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
parent: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
0 siblings, 1 reply; 4+ messages in thread
From: Mark Kirkwood @ 2013-07-31 23:11 UTC (permalink / raw)
To: Josh Berkus <josh@agliodbs.com>; +Cc: pgsql-bugs; Greg Smith <greg@2ndQuadrant.com>
On 01/08/13 11:08, Mark Kirkwood wrote:
> On 01/08/13 10:08, Josh Berkus wrote:
>>
>> To wit:
>>
>> [jberkus@pgx-test prepare]$ pgbench -c 4 -C -T 180 -l -r -M prepared
>> bench
>> starting vacuum...end.
>> Client 1 aborted in state 7: ERROR: prepared statement "P0_7" does not
>> exist
>> Client 0 aborted in state 7: ERROR: prepared statement "P0_7" does not
>> exist
>> Client 3 aborted in state 7: ERROR: prepared statement "P0_7" does not
>> exist
>> Client 2 aborted in state 7: ERROR: prepared statement "P0_7" does not
>> exist
>> transaction type: TPC-B (sort of)
>>
>
> Strange - work for me (9.4devel pulled just now).
>
> Cheers
>
> Mark
Hmmm, apologies - actually it didn't - I read right past the text
ERROR: prepared statement "P0_7" does not exist
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgBench cannot use prepared statements and reconnections
@ 2013-08-01 18:00 Josh Berkus <josh@agliodbs.com>
parent: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
0 siblings, 0 replies; 4+ messages in thread
From: Josh Berkus @ 2013-08-01 18:00 UTC (permalink / raw)
To: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>; +Cc: pgsql-bugs; Greg Smith <greg@2ndQuadrant.com>
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
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2013-08-01 18:00 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-07-31 22:08 pgBench cannot use prepared statements and reconnections Josh Berkus <josh@agliodbs.com>
2013-07-31 23:08 ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-07-31 23:11 ` Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
2013-08-01 18:00 ` Josh Berkus <josh@agliodbs.com>
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