postgresql/src/bin/psql
Daniel Gustafsson 53c6bd0aa3 Restart BackgroundPsql's timer more nicely.
Use BackgroundPsql's published API for automatically restarting
its timer for each query, rather than manually reaching into it
to achieve the same thing.

010_tab_completion.pl's logic for this predates the invention
of BackgroundPsql (and 664d75753 missed the opportunity to
make it cleaner).  030_pager.pl copied-and-pasted the code.

Author: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/1100715.1712265845@sss.pgh.pa.us
2026-02-13 11:36:31 +01:00
..
po Update copyright for 2026 2026-01-01 13:24:10 -05:00
t Restart BackgroundPsql's timer more nicely. 2026-02-13 11:36:31 +01:00
.gitignore Convert tab-complete's long else-if chain to a switch statement. 2024-10-07 12:22:10 -04:00
command.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
command.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
common.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
common.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
copy.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
copy.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
create_help.pl Update copyright for 2026 2026-01-01 13:24:10 -05:00
crosstabview.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
crosstabview.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
describe.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
describe.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
gen_tabcomplete.pl Update copyright for 2026 2026-01-01 13:24:10 -05:00
help.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
help.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
input.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
input.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
large_obj.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
large_obj.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
mainloop.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
mainloop.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
Makefile Update copyright for 2026 2026-01-01 13:24:10 -05:00
meson.build Update copyright for 2026 2026-01-01 13:24:10 -05:00
nls.mk More use of getpwuid_r() directly 2024-09-02 09:04:30 +02:00
prompt.c psql: Add %i prompt escape to indicate hot standby status. 2026-02-03 10:03:19 +09:00
prompt.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
psqlrc.sample Improve FILES section of psql reference page. 2014-01-14 19:27:57 -05:00
psqlscanslash.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
psqlscanslash.l Update copyright for 2026 2026-01-01 13:24:10 -05:00
settings.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
startup.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
stringutils.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
stringutils.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
tab-complete.h Update copyright for 2026 2026-01-01 13:24:10 -05:00
tab-complete.in.c psql: Add tab completion for pstdin and pstdout in \copy. 2026-01-07 16:22:42 -08:00
variables.c Update copyright for 2026 2026-01-01 13:24:10 -05:00
variables.h Update copyright for 2026 2026-01-01 13:24:10 -05:00