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 1weCHa-004dGc-1K for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Jun 2026 13:44:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1weCHZ-003P2j-0R for pgsql-bugs@arkaria.postgresql.org; Mon, 29 Jun 2026 13:44:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1we73C-001r5k-1x for pgsql-bugs@lists.postgresql.org; Mon, 29 Jun 2026 08:09:06 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1we73B-00000000j83-03Tj for pgsql-bugs@lists.postgresql.org; Mon, 29 Jun 2026 08:09:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=Hu9vxIryw9CFeshSeSiZCW2SraUAymBw1ggW+8niLck=; b=4OjRqu258YOHKdS+X+gRkBPygQ /ELOtLew75b0J1AjPPXTmsmXQv7Pow4Zt2R/hD1CzEDhn/NotRVB6PVtdm7vfTj1zyfRHrFIGBltG 1R9PCFYNZ7MoEK6siFhdfnD5ivKDVhTadCw0t7tMh8CWfsHRLacPVLhkf7KJN7lsvOvg8KeKbfnB7 BMs3Xam7oaQP052VuA3zFx7TqbtKUXybiJ7mtfQrOxu85ed3kbbWTRkoTQYbSLefVoL6hx81PSfpF rwf6FfohWkF7lf95aI4P/gZV8ksqNmhsTNvP5dxyGFltHNkON2P9nIrIWAA3eV23bVtTQdJOOpOou vRxPcNeg==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1we73A-008ANY-2G for pgsql-bugs@lists.postgresql.org; Mon, 29 Jun 2026 08:09:04 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1we739-005faw-1q for pgsql-bugs@lists.postgresql.org; Mon, 29 Jun 2026 08:09:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #19538: ALTER SYSTEM adds extra quotes To: pgsql-bugs@lists.postgresql.org From: PG Bug reporting form Cc: fotonszekta@gmail.com Reply-To: fotonszekta@gmail.com, pgsql-bugs@lists.postgresql.org Date: Mon, 29 Jun 2026 08:08:57 +0000 Message-ID: <19538-79b6b974a7b189b9@postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following bug has been logged on the website: Bug reference: 19538 Logged by: G=C3=A1bor Szab=C3=B3 Email address: fotonszekta@gmail.com PostgreSQL version: 14.23 Operating system: Ubuntu 24.04.4 Description: =20 The following command adds extra quotes to postgresql.auto.conf: ALTER SYSTEM SET shared_preload_libraries =3D 'pg_stat_statements, auth_del= ay, auto_explain, pg_prewarm'; The result entry in postgresql.auto.conf is: shared_preload_libraries =3D '"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=C3=A1jl vagy k=C3=B6nyvt=C3=A1r ("Nincs ilyen f=C3=A1jl vagy k=C3=B6nyvt=C3=A1r" is the Hungarian translati= on of "No such file or directory", because the server is running with the hu_HU.UTF-8 locale) When I run ALTER SYSTEM SET shared_preload_libraries =3D 'pg_stat_statement= s'; It works correctly and the resulting entry is: shared_preload_libraries =3D 'pg_stat_statements' However, when the value contains commas, the extra double quotes appear around the entire string. I also tried using double quotes in the ALTER SYSTEM command, but the result was the same. I reproduced the same behavior on my development system running PostgreSQL 18.4 on Windows.