Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aHFcl-0000UD-1y for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Jan 2016 18:49:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aHFck-0007bN-Gb for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Jan 2016 18:49:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aHFcj-0007b9-S8 for pgsql-bugs@postgresql.org; Thu, 07 Jan 2016 18:49:26 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aHFch-0000TV-67 for pgsql-bugs@postgresql.org; Thu, 07 Jan 2016 18:49:24 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id u07InH704759; Thu, 7 Jan 2016 10:49:17 -0800 Subject: Re: BUG #13853: initdb to UNC path To: NBoardman@idtus.com, pgsql-bugs@postgresql.org References: <20160107161434.8698.95754@wrigleys.postgresql.org> From: John R Pierce Message-ID: <568EB32F.7060001@hogranch.com> Date: Thu, 7 Jan 2016 10:49:19 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160107161434.8698.95754@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 1/7/2016 8:14 AM, NBoardman@idtus.com wrote: > The following bug has been logged on the website: > > Bug reference: 13853 > Logged by: Nuri Boardman > Email address:NBoardman@idtus.com > PostgreSQL version: 9.4.2 > Operating system: Windows 7 > Description: > > when i run this command (initdb with UNC path) > pg_ctl initdb -D \\localhost\Users\nboardman\test > > i get the following (error) output > > The files belonging to this database system will be owned by user > "NBoardman". > This user must also own the server process. > > The database cluster will be initialized with locale "English_United > States.1252 > ". > The default database encoding has accordingly been set to "WIN1252". > The default text search configuration will be set to "english". > > Data page checksums are disabled. > > fixing permissions on existing directory //localhost/Users/nboardman/test > ... ok > > creating subdirectories ... initdb: could not create directory > "//localhost/Users": File exists > initdb: removing contents of data directory > "//localhost/Users/nboardman/test" > pg_ctl: database system initialization failed > > finally, if this is illegal, the documentation does not indicate the path > has to be a windows path > fromhttp://www.postgresql.org/docs/9.4/static/app-initdb.html does it work if you leave out the \\localhost part? using network paths for database storage is NOT recommended. the documentation is OS independent, things like 'paths' are OS specific -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs