forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit03b87d0
committed
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 testto succeed on repeated runs. It makes sense to leave some objectsbehind to have more coverage for pg_upgrade (as does test_pg_dump), butthe role dropped here does not own any objects so there is no reason tokeep it.- GRANT SET ON PARAMETER is issued, creating an entry inpg_parameter_acl without cleaning up the entry created. This causesan overlap with unsafe_tests as both use work_mem, making the latterfail. This commit adds an extra REVOKE SET ON PARAMETER to clean thecontents of pg_parameter_acl, switching to maintenance_work_mem ratherthan work_mem to avoid an overlap between both tests.The tests of test_oat_hooks cannot use installcheck yet as these areproving to be unstable with caching and the namespace search hooks, sothe issues fixed here cannot be reached yet, but they would be once thehook issue is addressed and installcheck is allowed again intest_oat_hooks.Discussion:https://postgr.es/m/YrpVkADAY0knF6vM@paquier.xyzBackpatch-through: 151 parent834fce5 commit03b87d0
File tree
2 files changed
+10
-4
lines changed- src/test/modules/test_oat_hooks
- expected
- sql
2 files changed
+10
-4
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 |
| |
49 | 52 |
| |
50 | 53 |
| |
| |||
299 | 302 |
| |
300 | 303 |
| |
301 | 304 |
| |
| 305 | + |
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
30 | 31 |
| |
31 | 32 |
| |
32 | 33 |
| |
| |||
98 | 99 |
| |
99 | 100 |
| |
100 | 101 |
| |
| 102 | + |
0 commit comments
Comments
(0)