Re: On login trigger: take three - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: On login trigger: take three
Date
Msg-id B5CD06A6-98AA-4839-8FD1-2EE132CFA76F@yesql.se
Whole thread Raw
In response to Re: On login trigger: take three  (Alexander Lakhin <exclusion@gmail.com>)
Responses Re: On login trigger: take three
List pgsql-hackers
> On 13 Jan 2024, at 17:00, Alexander Lakhin <exclusion@gmail.com> wrote:

> I suspected that this failure was caused by autovacuum, and I've managed to
> reproduce it without Valgrind or slowing down a machine.

This might be due to the fact that the cleanup codepath to remove the flag when
there is no login event trigger doesn't block on locking pg_database to avoid
stalling connections.  There are no guarantees when the flag is cleared, so a
test like this will always have potential to be flaky it seems.

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: Synchronizing slots from primary to standby
Next
From: Jelte Fennema-Nio
Date:
Subject: Re: Add test module for Table Access Method