Re: Do we want to solve reload/config races more generally? (was: Postmaster crashes on SIGHUP when oauth_validator_libraries holds only whitespace) - Mailing list pgsql-hackers
From
Zsolt Parragi
Subject
Re: Do we want to solve reload/config races more generally? (was: Postmaster crashes on SIGHUP when oauth_validator_libraries holds only whitespace)
Hello
There's still a leftover empty validator issue, even if not that
serious: '""'. It returns a list with a single empty string, so the
new check doesn't catch it, the hba line gets a single empty named
validator.
This hits an assertion in debug builds, but otherwise works mostly
fine in release builds with a 'could not access file ""' error.
The attached patch adds an additional check for this.