Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9QO1-0000ST-6j for pgsql-bugs@postgresql.org; Thu, 06 Sep 2012 00:56:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9QO0-00035p-3r for pgsql-bugs@postgresql.org; Thu, 06 Sep 2012 00:56:00 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q860tvFw018505; Wed, 5 Sep 2012 20:55:57 -0400 (EDT) From: Tom Lane To: Peter Eisentraut cc: Murray Cumming , pgsql-bugs@postgresql.org Subject: Re: BUG #7514: postgres -k no longer works with spaces in the path In-reply-to: <5047D8C1.3080504@gmx.net> References: <16738.1346769101@sss.pgh.pa.us> <1346782937.12346.21.camel@murayc-x220.fritz.box> <5047D8C1.3080504@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Wed, 05 Sep 2012 18:57:05 -0400" Date: Wed, 05 Sep 2012 20:55:56 -0400 Message-ID: <18504.1346892956@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/39 X-Sequence-Number: 34034 Peter Eisentraut 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