aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regexport.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-07-11 12:47:52 +0900
committerMichael Paquier <michael@paquier.xyz>2022-07-11 12:47:52 +0900
commita6434b951558baad8372dc4b83bf87606dac9cda (patch)
tree96c33df74e7c6c692ccba5a2b7612d15262f938e /src/backend/regex/regexport.c
parent0a6be1f0ec3cc9b98453bdab2d4edcfd5a00c7fa (diff)
downloadpostgresql-a6434b951558baad8372dc4b83bf87606dac9cda.tar.gz
postgresql-a6434b951558baad8372dc4b83bf87606dac9cda.zip
Fix two portability issues with the tests of test_oat_hooks
This addresses two issues in the tests of test_oat_hooks: - The role regress_test_user was being left behind, preventing the test to succeed on repeated runs. It makes sense to leave some objects behind to have more coverage for pg_upgrade (as does test_pg_dump), but the role dropped here does not own any objects so there is no reason to keep it. - GRANT SET ON PARAMETER is issued, creating an entry in pg_parameter_acl without cleaning up the entry created. This causes an overlap with unsafe_tests as both use work_mem, making the latter fail. This commit adds an extra REVOKE SET ON PARAMETER to clean the contents of pg_parameter_acl, switching to maintenance_work_mem rather than work_mem to avoid an overlap between both tests. The tests of test_oat_hooks cannot use installcheck yet as these are proving to be unstable with caching and the namespace search hooks, so the issues fixed here cannot be reached yet, but they would be once the hook issue is addressed and installcheck is allowed again in test_oat_hooks. Discussion: https://postgr.es/m/YrpVkADAY0knF6vM@paquier.xyz Backpatch-through: 15
Diffstat (limited to 'src/backend/regex/regexport.c')
0 files changed, 0 insertions, 0 deletions