mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Slightly delayed patches from Todd...damn holidays :)
o A new patch that contains the following changes:
-- The pg_pwd file is now cached in the postmaster's memory.
-- pg_pwd is reloaded when the postmaster detects a flag file creat()'ed
by a backend.
-- qsort() is used to sort loaded password entries, and bsearch() is
is used to find entries in the pg_pwd cache.
-- backends now copy the pg_user relation to pg_pwd.pid, and then
rename the temp file to be pg_pwd.
-- The delimiter for pg_pwd has been changed to a tab character.
This commit is contained in:
@@ -12,8 +12,15 @@
|
||||
#include <libpq/pqcomm.h>
|
||||
|
||||
#define CRYPT_PWD_FILE "pg_pwd"
|
||||
#define CRYPT_PWD_FILE_SEPCHAR "'\\t'"
|
||||
#define CRYPT_PWD_FILE_SEPSTR "\t"
|
||||
#define CRYPT_PWD_RELOAD_SUFX ".reload"
|
||||
|
||||
extern char** pwd_cache;
|
||||
extern int pwd_cache_count;
|
||||
|
||||
extern char* crypt_getpwdfilename(void);
|
||||
extern char* crypt_getpwdreloadfilename();
|
||||
extern MsgType crypt_salt(const char* user);
|
||||
extern int crypt_verify(Port* port, const char* user, const char* pgpass);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user