]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Restart BackgroundPsql's timer more nicely.
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 13 Feb 2026 10:36:31 +0000 (11:36 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 13 Feb 2026 10:36:31 +0000 (11:36 +0100)
commit53c6bd0aa3de58baf828e60c6c8934d0a10a8501
tree9024e6171c2cd9968d76c37788669fb6aab40d81
parent775fc014156bdfa6938ef02dce3d85364b1bd220
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
src/bin/psql/t/010_tab_completion.pl
src/bin/psql/t/030_pager.pl