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 202312041109.oficgkhb5ipq@alvherre.pgsql
Whole thread Raw
In response to Failure with pgbench and --disable-thread-safety in ~v16  (Michael Paquier <michael@paquier.xyz>)
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)
> [16:51:10.467](0.000s) 
> [16:51:10.467](0.000s) #   Failed test 'working \startpipeline with serializable status (got 1 vs expected 0)'
> #   at t/001_pgbench_with_server.pl line 845.
> [16:51:10.467](0.000s) not ok 228 - working \startpipeline with serializable stdout /(?^:type:
.*/001_pgbench_pipeline_serializable)/
> [16:51:10.467](0.000s) 
> [16:51:10.467](0.000s) #   Failed test 'working \startpipeline with serializable stdout /(?^:type:
.*/001_pgbench_pipeline_serializable)/'
> #   at t/001_pgbench_with_server.pl line 845.
> [16:51:10.467](0.000s) #                   ''
> #     doesn't match '(?^:type: .*/001_pgbench_pipeline_serializable)'
> [16:51:10.467](0.000s) not ok 229 - working \startpipeline with serializable stdout /(?^:actually processed:
(\d+)/\1)/
> [16:51:10.467](0.000s) 
> [16:51:10.467](0.000s) #   Failed test 'working \startpipeline with serializable stdout /(?^:actually processed:
(\d+)/\1)/'
> #   at t/001_pgbench_with_server.pl line 845.
> [16:51:10.467](0.000s) #                   ''
> #     doesn't match '(?^:actually processed: (\d+)/\1)'
> 
> This ./configure switch has been removed in 17~, and, while I've not
> analyzed the problem in details, I am wondering if this points to an
> actual bug with \startpipeline in all branches.

Thanks, I'll have a look.  I'm sure I didn't test any of this code with
threading disabled :-)

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"Saca el libro que tu religión considere como el indicado para encontrar la
oración que traiga paz a tu alma. Luego rebootea el computador
y ve si funciona" (Carlos Duclós)



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: pg_upgrade and logical replication
Next
From: Alvaro Herrera
Date:
Subject: Re: Failure with pgbench and --disable-thread-safety in ~v16