public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: [email protected]
Cc: [email protected]
Subject: Re: BUG #19538: ALTER SYSTEM adds extra quotes
Date: Mon, 29 Jun 2026 09:55:05 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
PG Bug reporting form <[email protected]> writes:
> The following command adds extra quotes to postgresql.auto.conf:
> ALTER SYSTEM SET shared_preload_libraries = 'pg_stat_statements, auth_delay,
> auto_explain, pg_prewarm';
> The result entry in postgresql.auto.conf is:
> shared_preload_libraries = '"pg_stat_statements, auth_delay, auto_explain,
> pg_prewarm"'
> As a result, PostgreSQL tries to load the entire string as a single library
> name and reports the following error in /var/log/postgresql:
> FATAL: could not access file "pg_stat_statements, auth_delay, auto_explain,
> pg_prewarm": Nincs ilyen fájl vagy könyvtár
This behavior is correct; what's wrong is the SQL syntax you used.
You should have written
ALTER SYSTEM SET shared_preload_libraries = pg_stat_statements, auth_delay,
auto_explain, pg_prewarm;
since what you are providing is a list, not a single value that
happens to contain some commas. (It wouldn't matter in this case
whether you quote the individual values; though if any of them match
a SQL reserved word, it'd need quotes.)
I know this is confusing, because the rules are different when you
are writing a list directly in postgresql.conf. But, well, SQL is
not postgresql.conf.
regards, tom lane
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: BUG #19538: ALTER SYSTEM adds extra quotes
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox