Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1weCSB-004dNZ-2u for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Jun 2026 13:55:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1weCSA-003TTg-2f for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Jun 2026 13:55:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1weCSA-003TTS-1r for pgsql-bugs@lists.postgresql.org; Mon, 29 Jun 2026 13:55:14 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1weCS4-00000000nNo-3kRQ for pgsql-bugs@lists.postgresql.org; Mon, 29 Jun 2026 13:55:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 65TDt5xv1694252; Mon, 29 Jun 2026 09:55:05 -0400 From: Tom Lane To: fotonszekta@gmail.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19538: ALTER SYSTEM adds extra quotes In-reply-to: <19538-79b6b974a7b189b9@postgresql.org> References: <19538-79b6b974a7b189b9@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Mon, 29 Jun 2026 08:08:57 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1694250.1782741305.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 29 Jun 2026 09:55:05 -0400 Message-ID: <1694251.1782741305@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form 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