VY
.psqlrc
с настройками есть? кастомные \set
команды используются?Size: a a a
VY
.psqlrc
с настройками есть? кастомные \set
команды используются?A
.psqlrc
с настройками есть? кастомные \set
команды используются?$ cat .psqlrc
\set QUIET 1
\set PROMPT1 '%M:%> %n@%/%R%#%x '
\set PROMPT1 '%M:%[%033[1;31m%]%>%[%033[0m%] %n@%/%R%#%x '
\set PROMPT2 '%M %n@%/%R %# '
\set HISTSIZE 1000000
\x auto
\set VERBOSITY verbose
\timing
\pset linestyle unicode
\pset border 2
\set x '\\setenv PAGER less'
\set xx '\\setenv PAGER \'pspg -bX --no-mouse\''
\set QUIET 0
АЛ
VY
$ cat .psqlrc
\set QUIET 1
\set PROMPT1 '%M:%> %n@%/%R%#%x '
\set PROMPT1 '%M:%[%033[1;31m%]%>%[%033[0m%] %n@%/%R%#%x '
\set PROMPT2 '%M %n@%/%R %# '
\set HISTSIZE 1000000
\x auto
\set VERBOSITY verbose
\timing
\pset linestyle unicode
\pset border 2
\set x '\\setenv PAGER less'
\set xx '\\setenv PAGER \'pspg -bX --no-mouse\''
\set QUIET 0
psql -X
?A
2020-08-02 11:16:10.698 UTC [30459] postgres@base LOG: could not send data to client: Broken pipe
2020-08-02 11:16:10.698 UTC [30459] postgres@base STATEMENT: select * from log;
2020-08-02 11:16:10.699 UTC [30459] postgres@base FATAL: connection to client lost
2020-08-02 11:16:10.699 UTC [30459] postgres@base STATEMENT: select * from log;
A
psql -X
?[local]:5432 postgres@base=# select * from log;
Killed
postgres@db:~$
VY
[local]:5432 postgres@base=# select * from log;
Killed
postgres@db:~$
psql -X
запущенный клиент?A
psql -X
запущенный клиент?$ psql -d base -X
psql (11.8 (Ubuntu 11.8-1.pgdg16.04+1))
Type "help" for help.
base=# select * from log;
Killed
postgres@db:~$
VY
$ psql -d base -X
psql (11.8 (Ubuntu 11.8-1.pgdg16.04+1))
Type "help" for help.
base=# select * from log;
Killed
postgres@db:~$
\dt+ log
?psql -qAtX -d base -c "select * from log;" > /dev/null
A
\dt+ log
?psql -qAtX -d base -c "select * from log;" > /dev/null
psql -qAtX -d base -c "select * from log;" > /dev/null```
Killed
VY
core
от psql
и посмотреть backtrace.VY
psql -qAtX -d base -c "select * from log;" > /dev/null```
Killed
\set FETCH_COUNT 1000
перед запуском запроса?A
\set FETCH_COUNT 1000
перед запуском запроса?YS
J
A
LB
ВС
V
YS