pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: obartunov@gmail.com
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Disallow newlines in parameter values to be set in ALTER SYSTEM.
Date: Tue, 05 Apr 2016 16:02:55 -0400
Message-ID: <30584.1459886575@sss.pgh.pa.us> (raw)
In-Reply-To: <CAF4Au4zdfYk0V9OeeU0eTuuLNoWFsiu=yu2-bOsXz1RotivdXQ@mail.gmail.com>
References: <E1anCcs-0000GK-2I@gemulon.postgresql.org>
	<CAF4Au4xWsbCct-QOH1mCwDLkfgBfJ4wc5QZQR0MthhoLkHXvZw@mail.gmail.com>
	<CAF4Au4zdfYk0V9OeeU0eTuuLNoWFsiu=yu2-bOsXz1RotivdXQ@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Oleg Bartunov <obartunov@gmail.com> writes:
> On Tue, Apr 5, 2016 at 9:05 AM, Oleg Bartunov <obartunov@gmail.com> 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



view thread (6+ messages)

Message-ID: <30584.1459886575@sss.pgh.pa.us>
Permalink:  ../30584.1459886575@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30584.1459886575@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, obartunov@gmail.com
  Subject: Re: pgsql: Disallow newlines in parameter values to be set in ALTER SYSTEM.
  In-Reply-To: <30584.1459886575@sss.pgh.pa.us>
  References: <E1anCcs-0000GK-2I@gemulon.postgresql.org> <CAF4Au4xWsbCct-QOH1mCwDLkfgBfJ4wc5QZQR0MthhoLkHXvZw@mail.gmail.com> <CAF4Au4zdfYk0V9OeeU0eTuuLNoWFsiu=yu2-bOsXz1RotivdXQ@mail.gmail.com> <30584.1459886575@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox