[pgpool-committers: 2484] pgpool: Allow to open pool_passwd file in read only mode by pgpool-II m

Tatsuo Ishii ishii at postgresql.org
Sat Mar 14 17:58:23 JST 2015


Allow to open pool_passwd file in read only mode by pgpool-II main process.

Since pgpool-II process does not write to the file, it should be
allowed to open the file in read only mode by the pgpool-II
process. To implement this, now pool_init_pool_passwd has an
additional parameter "mode" which specifies in which mode caller want
to open pool_passwd. Also new static variable "pool_passwd_mode" is
introduced to remember in which mode the current file descriptor has
been created.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=e664693a2ee131165b9f73f9225952925b2ff213

Modified Files
--------------
src/auth/pool_passwd.c         |   24 ++++++++++++++++++------
src/include/auth/pool_passwd.h |    9 +++++++--
src/main/main.c                |    2 +-
src/tools/pgmd5/pg_md5.c       |    2 +-
4 files changed, 27 insertions(+), 10 deletions(-)



More information about the pgpool-committers mailing list