Re: [ADMIN] Running Windows binaries from non-English folder

Поиск
Список
Период
Сортировка
От George Neuner
Тема Re: [ADMIN] Running Windows binaries from non-English folder
Дата
Msg-id 02079694-8d58-1932-92b1-761dc63a869d@comcast.net
обсуждение исходный текст
Ответ на [ADMIN] Running Windows binaries from non-English folder  (Yuri Martsinovsky <captainsilver@gmail.com>)
Ответы Re: [ADMIN] Running Windows binaries from non-English folder  (Yuri Martsinovsky <captainsilver@gmail.com>)
Список pgsql-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

В списке pgsql-admin по дате отправления:

Предыдущее
От: Cory Nemelka
Дата:
Сообщение: [ADMIN] Error accessing catalog table pg_proc
Следующее
От: Yuri Martsinovsky
Дата:
Сообщение: Re: [ADMIN] Running Windows binaries from non-English folder