pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: George Neuner <gneuner2@comcast.net>
To: pgsql-admin@postgresql.org
Subject: Re: Running Windows binaries from non-English folder
Date: Wed, 8 Nov 2017 13:09:11 -0500
Message-ID: <02079694-8d58-1932-92b1-761dc63a869d@comcast.net> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Tue, 07 Nov 2017 19:30:46 +0000, Yuri Martsinovsky 
<captainsilver@gmail.com> wrote:
> If I run
> "C:\????????\pg_ctl.exe"
> I get this error:
> invalid binary: "C:\????????\pg_ctl.exe"
>
> The same happens when running initdb.exe
> Looks like the utility just cannot access its own file because of the
> russian characters.

Try running it using 8.3 path names.  Every file and folder in NTFS has 
2 names - one "natural" and a secondary "short" DOS 8.3 name+ext format 
name.  You can see short names using DIR /X in a console. The short 
names should be ASCII (subset) only.

E.g., on my system pg_ctl is in C:\program files\postgresql\9.6\bin.
   It's short name is  C:\PROGRA~1\POSTGR~1\9.6\bin\pg_ctl.exe

These short names don't permit spaces or non-printing characters, so 
they can work in situations where the natural name may not.

George


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (4+ messages)  latest in thread

Message-ID: <02079694-8d58-1932-92b1-761dc63a869d@comcast.net>
Permalink:  ../02079694-8d58-1932-92b1-761dc63a869d@comcast.net/
Also on:    postgresql.org/message-id/02079694-8d58-1932-92b1-761dc63a869d@comcast.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gneuner2@comcast.net
  Subject: Re: Running Windows binaries from non-English folder
  In-Reply-To: <02079694-8d58-1932-92b1-761dc63a869d@comcast.net>

* 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