pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Murray Cumming <murrayc@murrayc.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7514: postgres -k no longer works with spaces in the path
Date: Wed, 05 Sep 2012 20:55:56 -0400
Message-ID: <18504.1346892956@sss.pgh.pa.us> (raw)
In-Reply-To: <5047D8C1.3080504@gmx.net>
References: <E1T7f8j-0007MM-FJ@wrigleys.postgresql.org>
	<16738.1346769101@sss.pgh.pa.us>
	<1346782937.12346.21.camel@murayc-x220.fritz.box>
	<5047D8C1.3080504@gmx.net>

Peter Eisentraut <peter_e@gmx.net> writes:
> Maybe it would be easier if multiple -k options accumulated.

After further thought I'm not very enamored of that concept.  We've made
considerable compromises to ensure that every postmaster command-line
option corresponds exactly to some GUC parameter; it does not seem to me
that -k is important enough to deserve an exception.

However, it occurs to me that Murray's original complaint about spaces
in -k pathnames could be dealt with via very narrow changes in
SplitDirectoriesString.  That function was modeled on
SplitIdentifierString, with perhaps not enough thought about the
differences between identifiers and pathnames.  In particular, I suggest
that there's no need to reject embedded spaces in pathnames, and plenty
of systems on which it's important not to.  (Think "Program Files" on
Windows, for instance.)  It probably still makes sense to trim leading
and trailing whitespace, but let's allow embedded spaces.

If we did that, the new code would be incompatible with the old only for
paths including commas, leading double quotes, or leading/trailing
whitespace.  I submit that all of those cases are pretty uncommon,
especially compared to embedded space.

			regards, tom lane




view thread (8+ messages)  latest in thread

Message-ID: <18504.1346892956@sss.pgh.pa.us>
Permalink:  ../18504.1346892956@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18504.1346892956@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter_e@gmx.net, murrayc@murrayc.com
  Subject: Re: BUG #7514: postgres -k no longer works with spaces in the path
  In-Reply-To: <18504.1346892956@sss.pgh.pa.us>
  References: <E1T7f8j-0007MM-FJ@wrigleys.postgresql.org> <16738.1346769101@sss.pgh.pa.us> <1346782937.12346.21.camel@murayc-x220.fritz.box> <5047D8C1.3080504@gmx.net> <18504.1346892956@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