> Well, how do you want "global" GUCs registered by the validator to
> behave when OAuth isn't used for the connection?

My assumption was that with session_preload we only validate the line
used for the current login, not all the lines. This way we don't have
to always include all validator/hba plugins in session_preload, for
every login.

This is what I implemented for now, but if you think it would be
better to validate every line, I can adjust that.

> Of those choices, this _seems_ nicest. It'd be good to get a feel for
> how it behaves in practice though.

See the attached v2, with the above comment.

Other than the above question (validate everything vs the current
line), I'm also not entirely sure if we do need PGC_HBA. It could also
work with PGC_SIGHUP + the new PGC_S_HBA value in GucSources.

Attachment: v2-0001-Introduce-PGC_HBA-GUC-variables-settable-in-pg_hba.c.patch
Description: Binary data

Reply via email to