forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf4f2f2b
committed
Update upgrade_adapt.sql to handle tables using aclitem as data type
The regression test suite includes a table called "tab_core_types" thathas one attribute based on the type "aclitem". Keeping this attributeas-is causes hard failures when running pg_upgrade with an origin on~15. This commit updates upgrade_adapt.sql to automatically detect thetables with such attributes and switch them to text so as pg_upgradeis able to go through its run.This does not provide the same detection coverage as pg_upgrade, wherewe are able to find out aclitems used in arrays, domains or evencomposite types, but this is (I guess) enough for most things like aninstance that had installcheck run on before the upgrade with a dumpgenerated from it.Note that the buildfarm code has taken the simplest approach of justdropping "tab_core_types", so what we have here is more modular.Author: Anton A. MelnikovDiscussion:https://postgr.es/m/49f389ba-95ce-8a9b-09ae-f60650c0e7c7@inbox.ru1 parent3022cb1 commitf4f2f2b
1 file changed
+29
-1
lines changedLines changed: 29 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
| 23 | + | |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
| |||
89 | 90 |
| |
90 | 91 |
| |
91 | 92 |
| |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + |
0 commit comments
Comments
(0)