forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit96cdeae
committed
Add toast tables to most system catalogs
It has been project policy to create toast tables only for those catalogsthat might reasonably need one. Since this judgment call can change overtime, just create one for every catalog, as this can be useful whencreating rather-long entries in catalogs, with recent examples being inthe shape of policy expressions or customly-formatted SCRAM verifiers.To prevent circular dependencies and to avoid adding complexity to VACUUMFULL logic, exclude pg_class, pg_attribute, and pg_index. Also, toprevent pg_upgrade from seeing a non-empty new cluster, excludepg_largeobject and pg_largeobject_metadata from the set as large objectdata is handled as user data. Those relations have no reason to use atoast table anyway.Author: Joe Conway, John NaylorReviewed-by: Michael Paquier, Tom LaneDiscussion:https://postgr.es/m/84ddff04-f122-784b-b6c5-3536804495f8@joeconway.com1 parent2409716 commit96cdeae
File tree
4 files changed
+82
-68
lines changed- src
- backend/catalog
- include/catalog
- test/regress
- expected
- sql
4 files changed
+82
-68
lines changedLines changed: 15 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
253 | 253 |
| |
254 | 254 |
| |
255 | 255 |
| |
256 |
| - | |
257 |
| - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
258 | 260 |
| |
259 | 261 |
| |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
260 | 268 |
| |
261 |
| - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
262 | 274 |
| |
263 | 275 |
| |
264 | 276 |
| |
|
Lines changed: 37 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| 49 | + | |
49 | 50 |
| |
| 51 | + | |
50 | 52 |
| |
| 53 | + | |
51 | 54 |
| |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
52 | 65 |
| |
53 | 66 |
| |
54 | 67 |
| |
55 | 68 |
| |
56 | 69 |
| |
57 | 70 |
| |
| 71 | + | |
| 72 | + | |
| 73 | + | |
58 | 74 |
| |
59 | 75 |
| |
60 |
| - | |
61 |
| - | |
62 |
| - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
63 | 82 |
| |
64 | 83 |
| |
65 | 84 |
| |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
66 | 94 |
| |
67 | 95 |
| |
68 | 96 |
| |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
69 | 103 |
| |
70 | 104 |
|
Lines changed: 22 additions & 58 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
84 | 88 |
| |
85 | 89 |
| |
86 | 90 |
| |
87 | 91 |
| |
88 | 92 |
| |
89 | 93 |
| |
90 | 94 |
| |
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 |
| - | |
120 |
| - | |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 |
| - | |
131 |
| - | |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
145 | 109 |
|
Lines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 |
| |
83 | 87 |
| |
84 | 88 |
| |
|
0 commit comments
Comments
(0)