Visitar URL original
primary_routing_query_pattern_list is appended instead of overwritten on reload · Issue #151 · pgpool/pgpool2 · GitHub
Skip to content

primary_routing_query_pattern_list is appended instead of overwritten on reload #151

Description

@0713seki-stack

Description:
In Pgpool-II 4.4.15, when updating primary_routing_query_pattern_list in pgpool.conf and executing systemctl reload (SIGHUP), the new patterns are appended to the existing list rather than replacing them.

Steps to reproduce:

Set primary_routing_query_pattern_list = 'SELECT 1' in pgpool.conf and start Pgpool-II.

Change it to primary_routing_query_pattern_list = 'SELECT 2' and execute pgpool reload.

Pgpool-II now holds both 'SELECT 1' and 'SELECT 2' in its internal list.

Impact:

Deleted or modified patterns remain active.

Memory consumption increases with every reload.

Duplicate patterns lead to redundant evaluation logic.

Environment:

Pgpool-II version: 4.4.15

OS: RHEL8.10

Activity

  1. self-assigned this
    on Mar 5, 2026
  2. pengbo0328 commented on Mar 15, 2026

    @pengbo0328
    Collaborator

    Thank you for reporting the bug.
    I was able to reproduce the issue, and I will take a look at it.

  3. 0713seki-stack commented on Mar 16, 2026

    @0713seki-stack
    Author

    Thank you for the update.
    I'm glad to hear that you were able to reproduce it. Looking forward to the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions