forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7c45e3a
committed
Parse pg_ident.conf when it's loaded, keeping it in memory in parsed format.
Similar changes were done to pg_hba.conf earlier already, this commit makespg_ident.conf to behave the same as pg_hba.conf.This has two user-visible effects. First, if pg_ident.conf contains multipleerrors, the whole file is parsed at postmaster startup time and all theerrors are immediately reported. Before this patch, the file was parsed andthe errors were reported only when someone tries to connect using anauthentication method that uses the file, and the parsing stopped on firsterror. Second, if you SIGHUP to reload the config files, and the newpg_ident.conf file contains an error, the error is logged but the old filestays in effect.Also, regular expressions in pg_ident.conf are now compiled only once whenthe file is loaded, rather than every time the a user is authenticated. Thatshould speed up authentication if you have a lot of regexps in the file.Amit Kapila1 parent9d5e973 commit7c45e3a
File tree
4 files changed
+213
-94
lines changed- src
- backend
- libpq
- postmaster
- utils/init
- include/libpq
4 files changed
+213
-94
lines changed0 commit comments
Comments
(0)