Re: Failure with pgbench and --disable-thread-safety in ~v16 - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Failure with pgbench and --disable-thread-safety in ~v16
Date
Msg-id 202312041117.45hzlzgdk6wy@alvherre.pgsql
Whole thread Raw
In response to Failure with pgbench and --disable-thread-safety in ~v16  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Failure with pgbench and --disable-thread-safety in ~v16
List pgsql-hackers
On 2023-Dec-04, Michael Paquier wrote:

> While running some tests for 8984480b545d, I have noticed that the TAP
> tests of pgbench fail when ~16 is compiled with
> --disable-thread-safety:
> [16:51:10.467](0.004s) not ok 227 - working \startpipeline with serializable status (got 1 vs expected 0)

So the problem is that we do this:

./pgbench -c4 -j2 -t 10 -n -M prepared -f
/home/alvherre/Code/pgsql-build/REL_16_STABLE/src/bin/pgbench/tmp_check/t_001_pgbench_with_server_main_data/001_pgbench_pipeline

and get this error:
pgbench: error: threads are not supported on this platform; use -j1

So, the fix is just to remove the -j2 in the command line.  I'll do that
in a jiffy.  There's no other test that uses -j, except the one
specifically designed to test threads.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
Bob [Floyd] used to say that he was planning to get a Ph.D. by the "green
stamp method," namely by saving envelopes addressed to him as 'Dr. Floyd'.
After collecting 500 such letters, he mused, a university somewhere in
Arizona would probably grant him a degree.              (Don Knuth)



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Failure with pgbench and --disable-thread-safety in ~v16
Next
From: Amit Kapila
Date:
Subject: Re: undetected deadlock in ALTER SUBSCRIPTION ... REFRESH PUBLICATION