Re: pgbnech: allow to cancel queries during benchmark

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Yugo NAGATA <nagata@sraoss.co.jp>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2023-08-09T09:18:43Z
Lists: pgsql-hackers
I forgot, about the test:

I think that it should be integrated in the existing 
"001_pgbench_with_server.pl" script, because a TAP script is pretty 
expensive as it creates a cluster, starts it… before running the test.

I'm surprise that IPC::Run does not give any access to the process number. 
Anyway, its object interface seems to allow sending signal:

 	$h->signal("...")

So the code could be simplified to use that after a small delay.

-- 
Fabien.

Commits

  1. libpq: Add encrypted and non-blocking query cancellation routines