Re: race condition in pg_class

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: Noah Misch <noah(at)leadboat(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: race condition in pg_class
Date: 2026-02-16 18:00:00
Message-ID: 6e51b015-0cb7-49aa-8d09-024f58fc6c2d@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

16.02.2026 19:03, Noah Misch wrote:

> Here's the non-TODO failure in that log:
>
> [13:11:30.050](0.002s) not ok 10 - no such database stderr /(?^:FATAL: database "no-such-database" does not exist)/
> [13:11:30.051](0.001s) # Failed test 'no such database stderr /(?^:FATAL: database "no-such-database" does not exist)/'
> # at C:/tools/xmsys64/home/pgrunner/bf/root/REL_18_STABLE/pgsql/src/bin/pgbench/t/001_pgbench_with_server.pl line 100.
> [13:11:30.051](0.000s) # 'pgbench: error: connection to server on socket "C:/tools/xmsys64/tmp/P5YfRmVxhI/.s.PGSQL.10766" failed: server closed the connection unexpectedly
> # This probably means the server terminated abnormally
> # before or while processing the request.
> # pgbench: error: could not create connection for setup
> # '
> # doesn't match '(?^:FATAL: database "no-such-database" does not exist)'
>
>
> The server log has the expected message that pgbench didn't receive:
>
> 2026-02-12 13:11:29.662 UTC [8948:1] [unknown] LOG: connection received: host=[local]
> 2026-02-12 13:11:29.664 UTC [8948:2] [unknown] LOG: connection authenticated: user="pgrunner" method=trust (C:/tools/xmsys64/home/pgrunner/bf/root/REL_18_STABLE/pgsql.build/testrun/pgbench/001_pgbench_with_server/data/t_001_pgbench_with_server_main_data/pgdata/pg_hba.conf:117)
> 2026-02-12 13:11:29.664 UTC [8948:3] [unknown] LOG: connection authorized: user=pgrunner database=no-such-database application_name=001_pgbench_with_server.pl
> 2026-02-12 13:11:29.664 UTC [8948:4] [unknown] FATAL: database "no-such-database" does not exist

Yes, that's well-known Windows-specific anomaly:
https://wiki.postgresql.org/wiki/Known_Buildfarm_Test_Failures#Miscellaneous_tests_fail_on_Windows_due_to_a_connection_closed_before_receiving_a_final_error_message

Thank you for paying attention to my report!

Best regards,
Alexander

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-02-16 18:07:34 Re: generating function default settings from pg_proc.dat
Previous Message Andres Freund 2026-02-16 17:56:03 Re: Better shared data structure management and resizable shared data structures