pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
psql.exe error near '^'
2+ messages / 2 participants
[nested] [flat]

* psql.exe error near '^'
@ 2015-12-24 18:40  Alexey Alexeev <gldragon@yandex.ru>
  0 siblings, 1 reply; 2+ messages in thread

From: Alexey Alexeev @ 2015-12-24 18:40 UTC (permalink / raw)
  To: pgsql-bugs

Здравствуйте!

При выполнении следующей команды
psql.exe --dbname=MYDB --host=localhost --port=5432 --username=myuser 
--file=sql_try.sql --quiet --log-file=sql_try.log --output=sql_try.rslt 
--no-align --field-separator=^

Даже не спросив пароль подключения к БД процесс зависает намертво. В 
первый раз это совсем повесило компьютер - пришлось холодную 
перезагрузку делать. Второй раз - успел отстрелить процесс из диспетчера 
задач.

Проблема именно в "--field-separator=^"

Если написать
--field-separator=|
  или
--field-separator="^"
все работает правильно.


ОС: Windows 7 pro SP1 x64

C:\>psql --version
psql (PostgreSQL) 9.4.0



-- 
             Замечательного настроения и легкого дня! Алексей Алексеев



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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: psql.exe error near '^'
@ 2015-12-28 16:03  Shulgin, Oleksandr <oleksandr.shulgin@zalando.de>
  parent: Alexey Alexeev <gldragon@yandex.ru>
  0 siblings, 0 replies; 2+ messages in thread

From: Shulgin, Oleksandr @ 2015-12-28 16:03 UTC (permalink / raw)
  To: Alexey Alexeev <gldragon@yandex.ru>; +Cc: pgsql-bugs

2015-12-24 19:40 GMT+01:00 Alexey Alexeev <gldragon@yandex.ru>:

> Здравствуйте!
>
> При выполнении следующей команды
> psql.exe --dbname=MYDB --host=localhost --port=5432 --username=myuser
> --file=sql_try.sql --quiet --log-file=sql_try.log --output=sql_try.rslt
> --no-align --field-separator=^
>
> Даже не спросив пароль подключения к БД процесс зависает намертво. В
> первый раз это совсем повесило компьютер - пришлось холодную перезагрузку
> делать. Второй раз - успел отстрелить процесс из диспетчера задач.
>
> Проблема именно в "--field-separator=^"
>
> Если написать
> --field-separator=|
>  или
> --field-separator="^"
> все работает правильно.
>
>
> ОС: Windows 7 pro SP1 x64
>
> C:\>psql --version
> psql (PostgreSQL) 9.4.0


Alexey,

Given the symptoms you describe, it appears to me that the ^ symbol has a
special[1] meaning on the command line in Windows.  Did you consider
possibility that the shell interpreter was waiting for more input after ^
and newline (at least this is what happens if you try to model this in
Un*x-like shell with --field-separator=\<newline>)?

Did you see increased CPU usage by the psql process (was there one)?

Thank you.
--
Alex

[1] e.g, see this:
http://www.tomshardware.co.uk/forum/35565-45-when-special-command-line


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-12-28 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-12-24 18:40 psql.exe error near '^' Alexey Alexeev <gldragon@yandex.ru>
2015-12-28 16:03 ` Shulgin, Oleksandr <oleksandr.shulgin@zalando.de>

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