aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeWindowAgg.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-12-06 09:20:13 +0900
committerMichael Paquier <michael@paquier.xyz>2022-12-06 09:20:13 +0900
commita7885c9bb22de3efcc0ba4e79bbde8a77e8b7036 (patch)
tree87f6386ce5758981795d4921b706e9cd82daf13f /src/backend/executor/nodeWindowAgg.c
parent1bd47d0dca9f63dc26abc00d4912857440cd101c (diff)
downloadpostgresql-a7885c9bb22de3efcc0ba4e79bbde8a77e8b7036.tar.gz
postgresql-a7885c9bb22de3efcc0ba4e79bbde8a77e8b7036.zip
Provide test coverage in pg_dump for default behaviors with compression
By default, the contents generated by the custom and directory dump formats are compressed. However, with the existing test facility, the restore program will succeed regardless of whether the dumped output was compressed or not without checking if anything has been compressed. This commit implements a portable way to check the contents of the custom and directory dump formats: - glob_patterns, that can be defined for each test as an array of glob()-compilable strings, tracking the contents that should or should not be compressed. While this is useful to make sure that the table data is compressed, this also checks that blobs.toc and toc.dat are never compressed. - command_like, to execute a command on a dump and check its generated output. This is used here in correlation with pg_restore -l to check if the dumps have been compressed or not, depending on if the build supports gzip, or not. This hole in the tests has come up when working on 5e73a60, where compression has to be applied by default, if available, for both dump formats. The idea of glob_patterns comes from me, and Georgios has come up with the design for command_like. Author: Georgios Kokolatos, Michael Paquier Discussion: https://postgr.es/m/DQn4czCWR1rcbGPLL7p3LfEr5-kGmlySm-H05VgroINdikvhtS5r9EdI6b8D8sjnbKdJ09k-cxs2AqijBeHAWk9Q8gvEAxPRHuLRhwONcGc=@pm.me
Diffstat (limited to 'src/backend/executor/nodeWindowAgg.c')
0 files changed, 0 insertions, 0 deletions