Skip to content

Configuration file parameters cannot be enclosed in double quotes. #158

@feeling0713

Description

@feeling0713

[root@feeling etc]# cat pgpool.conf |grep 'backend_clustering_mode'
backend_clustering_mode = "streaming_replication"

When I configure the parameters as shown above, the following error occurs upon starting pgpool.

[root@feeling bin]# ./pgpool -f ../etc/pgpool.conf
2026-04-07 17:22:19.588: main pid 1110399: FATAL: invalid value for parameter "backend_clustering_mode": """
2026-04-07 17:22:19.588: main pid 1110399: HINT: Available values: streaming_replication, native_replication, logical_replication, raw, snapshot_isolation.

Why doesn't it support configuring parameters with double quotes?

The issue was resolved by modifying the codes in file 'src/config/pool_config.l'

STRING          \'([^'\n]|\\.)*\'
DOUBLE_STRING   \"([^"\n]|\\.)*\"

%%

\n              Lineno++; return POOL_EOL;
[ \t\r]+        /* eat whitespace */
#.*$            /* eat comment */

{KEY}           return POOL_KEY;
{STRING}        return POOL_STRING;
{DOUBLE_STRING} return POOL_STRING;

The attachment is the patch for the aforementioned codes, and it has passed the tests.

Add-support-for-parsing-double-quotes-in-configurati.patch

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