Re: Assertion failure during initdb with transaction_timeout set - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Assertion failure during initdb with transaction_timeout set
Date
Msg-id 231835.1751640446@sss.pgh.pa.us
Whole thread Raw
Responses Re: Assertion failure during initdb with transaction_timeout set
List pgsql-hackers
Fujii Masao <masao.fujii@oss.nttdata.com> writes:
> While discussing the assertion failure with track_commit_timestamp=on during initdb [1],
> I found a similar issue with another GUC: transaction_timeout.

> This happens because enable_timeout() tries to start the transaction timeout
> before InitializeTimeouts() has been called, i.e., the timeout subsystem
> hasn't been initialized yet.

> To address this, I'm thinking forcibly setting transaction_timeout to 0
> during bootstrap or in initdb.

I don't like inventing a different workaround for each case we find.
The precedent established by the other patch is to prevent the
relevant subsystem from starting if IsBootstrapProcessingMode().
Can't we do something similar here?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Ashutosh Bapat
Date:
Subject: Re: Report replica identity in pg_publication_tables
Next
From: Yugo Nagata
Date:
Subject: Re: Suggestion to add --continue-client-on-abort option to pgbench