Improve a bit the tests of pg_walinspect
commit4f1882b960596c35d62c78fb44e14913eff49a85
authorMichael Paquier <michael@paquier.xyz>
Thu, 23 Mar 2023 02:50:35 +0000 (23 11:50 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 23 Mar 2023 02:50:35 +0000 (23 11:50 +0900)
tree477cf449882682763d7920a7227f16f67c5d07f5
parent8fba928fd78856712f69d96852f8061e77390fda
Improve a bit the tests of pg_walinspect

This commit improves the tests of pg_walinspect on a few things:
- Remove aggregates for queries that should fail.  If the code is
reworked in such a way that the behavior of these queries is changed,
we would get more input from them, written this way.
- Expect at least one record reported in the valid queries doing scans
across ranges, rather than zero records.
- Adjust a few comments, for consistency.

Author: Bharath Rupireddy
Discussion: https://postgr.es/m/CALj2ACVaoXW3nJD9zq8E66BEf-phgJfFcKRVJq9GXkuX0b3ULQ@mail.gmail.com
contrib/pg_walinspect/expected/oldextversions.out
contrib/pg_walinspect/expected/pg_walinspect.out
contrib/pg_walinspect/sql/oldextversions.sql
contrib/pg_walinspect/sql/pg_walinspect.sql