Re: Failure with pgbench and --disable-thread-safety in ~v16

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Failure with pgbench and --disable-thread-safety in ~v16
Date: 2023-12-04 11:09:32
Message-ID: 202312041109.oficgkhb5ipq@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2023-12-04 11:17:37 Re: Failure with pgbench and --disable-thread-safety in ~v16
Previous Message Amit Kapila 2023-12-04 11:00:49 Re: pg_upgrade and logical replication