mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 13:51:21 +02:00
7c09d2797e
Allow a pager to be used by the \watch command. This works but isn't very useful with traditional pagers like "less", so use a different environment variable. The popular open source tool "pspg" (also by Pavel) knows how to display the output if you set PSQL_WATCH_PAGER="pspg --stream". To make \watch react quickly when the user quits the pager or presses ^C, and also to increase the accuracy of its timing and decrease the rate of useless context switches, change the main loop of the \watch command to use sigwait() rather than a sleeping/polling loop, on Unix. Supported on Unix only for now (like pspg). Author: Pavel Stehule <pavel.stehule@gmail.com> Author: Thomas Munro <thomas.munro@gmail.com> Discussion: https://postgr.es/m/CAFj8pRBfzUUPz-3gN5oAzto9SDuRSq-TQPfXU_P6h0L7hO%2BEhg%40mail.gmail.com |
||
---|---|---|
.. | ||
po | ||
t | ||
.gitignore | ||
command.c | ||
command.h | ||
common.c | ||
common.h | ||
copy.c | ||
copy.h | ||
create_help.pl | ||
crosstabview.c | ||
crosstabview.h | ||
describe.c | ||
describe.h | ||
help.c | ||
help.h | ||
input.c | ||
input.h | ||
large_obj.c | ||
large_obj.h | ||
mainloop.c | ||
mainloop.h | ||
Makefile | ||
nls.mk | ||
prompt.c | ||
prompt.h | ||
psqlrc.sample | ||
psqlscanslash.h | ||
psqlscanslash.l | ||
settings.h | ||
startup.c | ||
stringutils.c | ||
stringutils.h | ||
tab-complete.c | ||
tab-complete.h | ||
variables.c | ||
variables.h |