Re: psql - add SHOW_ALL_RESULTS option
Fabien COELHO <coelho@cri.ensmp.fr>
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>,
"pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2021-07-22T09:00:41Z
Lists: pgsql-hackers
Attachments
- pager.pl (text/x-perl)
Hello Pavel, >> The newly added PSQL_WATCH_PAGER feature which broke the patch does not >> seem to be tested anywhere, this is tiring:-( > > Do you have any idea how this can be tested? The TAP patch sent by Peter on this thread is a very good start. > It requires some pager that doesn't use blocking reading, and you need > to do remote control of this pager. So it requires a really especially > written pager just for this purpose. It is solvable, but I am not sure > if it is adequate to this patch. Not really: The point would not be to test the pager itself (that's for the people who develop the pager, not for psql), but just to test that the pager is actually started or not started by psql depending on conditions (eg pset pager…) and that it does *something* when started. See for instance the simplistic pager.pl script attached, the output of which could be tested. Note that PSQL_PAGER is not tested at all either. Basically "psql" is not tested, which is a pain when developing a non trivial patch. -- Fabien.
Commits
-
psql: Show all query results by default
- 7844c9918a43 15.0 landed
- 3a5130672296 14.0 landed
-
psql: Refactor ProcessResult()
- 5519d5affdfa 15.0 landed
-
psql: Refactor SendQuery()
- 8910a25fef3d 15.0 landed
-
psql: Add test for psql behavior on server crash
- 8cd7627c7b19 15.0 landed
-
psql: Additional tests
- 9028cce426ba 15.0 landed
-
Improve some psql test code
- fbee60f6a4ff 15.0 landed
-
psql: Fix some scan-build warnings
- 390edeeb570c 15.0 landed
-
psql: Add test for handling of replication commands
- 67c069848a99 15.0 landed
-
psql: More tests
- c0280bc3edeb 15.0 landed
-
psql: Add various tests
- 14d755b00037 15.0 landed
-
psql: Add test for query canceling
- 5b3f471ff23a 15.0 landed
-
Revert "psql: Show all query results by default"
- fae65629cec8 14.0 landed
-
Extend a test case a little
- b3a9e9897ec7 14.0 landed