Skip to content

reload config issue #164

Description

@liujinyang-highgo

hi,
I met an issue ,could you help have a look at it?

reproduce:

  1. set parameter log_connections(default value is off) to on in ppgool.conf
    log_connections = on
  2. then use psql connect to pgpool and run show command.
    ppgool show log_connections;  
    log_connections 
   -----------------
    on
  1. \q and terminate the connection.
  2. comment this parameter in pgpool.conf.
    # log_connections = on
  3. do reload
    ./pgpool -f ../etc/pgpool.conf reload
  4. use psql connect to pgpool again and run show command.
    ppgool show log_connections;  
    log_connections 
   -----------------
    on

my concern:
for my understanding, in step 6, the result should be recovered to default value? right?
I checked code, when parent process received reload sig, it will send this sig to all child processes, then child call check_config_reload()->pool_get_config() to reload config file, but it will ignore commented lines in pgpool.conf, so the commented lines would not be recovered to default value.
I'm not quite sure if this is the original design intention.

Thanks a lot!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions