Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1anXBl-0008Md-Cy for pgsql-committers@arkaria.postgresql.org; Tue, 05 Apr 2016 20:03:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1anXBk-0003b7-V7 for pgsql-committers@arkaria.postgresql.org; Tue, 05 Apr 2016 20:03:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1anXBk-0003b1-OW for pgsql-committers@postgresql.org; Tue, 05 Apr 2016 20:03:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1anXBh-0004yJ-Jo for pgsql-committers@postgresql.org; Tue, 05 Apr 2016 20:03:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u35K2tXv030585; Tue, 5 Apr 2016 16:02:55 -0400 From: Tom Lane To: obartunov@gmail.com cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Disallow newlines in parameter values to be set in ALTER SYSTEM. In-reply-to: References: Comments: In-reply-to Oleg Bartunov message dated "Tue, 05 Apr 2016 09:08:45 +0300" Date: Tue, 05 Apr 2016 16:02:55 -0400 Message-ID: <30584.1459886575@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Oleg Bartunov writes: > On Tue, Apr 5, 2016 at 9:05 AM, Oleg Bartunov wrote: >> it's also fixed problem with setting parameter to ''. Before >> alter system SET shared_preload_libraries = ''; > Ooops, it doesn't :( > FATAL: could not access file "": No such file or directory > cat /usr/local/pgsql-head/data/postgresql.auto.conf > # Do not edit this file manually! > # It will be overwritten by ALTER SYSTEM command. > shared_preload_libraries = '""' I do not think this is a bug, or at least not an ALTER SYSTEM bug. What you wrote there means a single list entry that is an empty string, and ALTER SYSTEM reproduced that faithfully. We do have a shortcoming here, which is that the SET syntax lacks any way to explicitly set a GUC_LIST_INPUT variable to an empty list. It's been like that for a long time with few complaints, but maybe we should do something about it. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers