forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7cb3048
committed
Add option PROCESS_TOAST to VACUUM
This option controls if toast tables associated with a relation arevacuumed or not when running a manual VACUUM. It was already possibleto trigger a manual VACUUM on a toast relation without processing itsmain relation, but a manual vacuum on a main relation always forced avacuum on its toast table. This is useful in scenarios where the levelof bloat or transaction age of the main and toast relations differs alot.This option is an extension of the existing VACOPT_SKIPTOAST that wasused by autovacuum to control if toast relations should be skipped ornot. This internal flag is renamed to VACOPT_PROCESS_TOAST forconsistency with the new option.A new option switch, called --no-process-toast, is added to vacuumdb.Author: Nathan BossartReviewed-by: Kirk Jamison, Michael Paquier, Justin PryzbyDiscussion:https://postgr.es/m/BA8951E9-1524-48C5-94AF-73B1F0D7857F@amazon.com1 parent5fd5900 commit7cb3048
File tree
10 files changed
+104
-14
lines changed- doc/src/sgml/ref
- src
- backend
- commands
- postmaster
- bin
- psql
- scripts
- t
- include/commands
- test/regress
- expected
- sql
10 files changed
+104
-14
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| 36 | + | |
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
| |||
210 | 211 |
| |
211 | 212 |
| |
212 | 213 |
| |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
213 | 228 |
| |
214 | 229 |
| |
215 | 230 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
244 | 244 |
| |
245 | 245 |
| |
246 | 246 |
| |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
247 | 262 |
| |
248 | 263 |
| |
249 | 264 |
| |
|
Lines changed: 14 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
| 107 | + | |
107 | 108 |
| |
108 | 109 |
| |
109 | 110 |
| |
| |||
140 | 141 |
| |
141 | 142 |
| |
142 | 143 |
| |
| 144 | + | |
| 145 | + | |
143 | 146 |
| |
144 | 147 |
| |
145 | 148 |
| |
| |||
189 | 192 |
| |
190 | 193 |
| |
191 | 194 |
| |
192 |
| - | |
| 195 | + | |
| 196 | + | |
193 | 197 |
| |
194 | 198 |
| |
195 | 199 |
| |
196 | 200 |
| |
197 | 201 |
| |
198 |
| - | |
199 | 202 |
| |
200 | 203 |
| |
201 | 204 |
| |
| |||
318 | 321 |
| |
319 | 322 |
| |
320 | 323 |
| |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
321 | 331 |
| |
322 | 332 |
| |
323 | 333 |
| |
| |||
1895 | 1905 |
| |
1896 | 1906 |
| |
1897 | 1907 |
| |
1898 |
| - | |
| 1908 | + | |
| 1909 | + | |
1899 | 1910 |
| |
1900 | 1911 |
| |
1901 | 1912 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2918 | 2918 |
| |
2919 | 2919 |
| |
2920 | 2920 |
| |
2921 |
| - | |
2922 |
| - | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
2923 | 2924 |
| |
2924 | 2925 |
| |
2925 | 2926 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3870 | 3870 |
| |
3871 | 3871 |
| |
3872 | 3872 |
| |
3873 |
| - | |
3874 |
| - | |
| 3873 | + | |
| 3874 | + | |
| 3875 | + | |
3875 | 3876 |
| |
3876 | 3877 |
| |
3877 | 3878 |
| |
|
Lines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
60 |
| - | |
61 |
| - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
62 | 62 |
| |
63 |
| - | |
64 |
| - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
65 | 72 |
| |
66 | 73 |
| |
67 | 74 |
| |
|
Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
| |||
99 | 100 |
| |
100 | 101 |
| |
101 | 102 |
| |
| 103 | + | |
102 | 104 |
| |
103 | 105 |
| |
104 | 106 |
| |
| |||
126 | 128 |
| |
127 | 129 |
| |
128 | 130 |
| |
| 131 | + | |
129 | 132 |
| |
130 | 133 |
| |
131 | 134 |
| |
| |||
235 | 238 |
| |
236 | 239 |
| |
237 | 240 |
| |
| 241 | + | |
| 242 | + | |
| 243 | + | |
238 | 244 |
| |
239 | 245 |
| |
240 | 246 |
| |
| |||
291 | 297 |
| |
292 | 298 |
| |
293 | 299 |
| |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
294 | 306 |
| |
295 | 307 |
| |
296 | 308 |
| |
| |||
456 | 468 |
| |
457 | 469 |
| |
458 | 470 |
| |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
459 | 479 |
| |
460 | 480 |
| |
461 | 481 |
| |
| |||
872 | 892 |
| |
873 | 893 |
| |
874 | 894 |
| |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
875 | 902 |
| |
876 | 903 |
| |
877 | 904 |
| |
| |||
971 | 998 |
| |
972 | 999 |
| |
973 | 1000 |
| |
| 1001 | + | |
974 | 1002 |
| |
975 | 1003 |
| |
976 | 1004 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
181 | 181 |
| |
182 | 182 |
| |
183 | 183 |
| |
184 |
| - | |
| 184 | + | |
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
252 | 252 |
| |
253 | 253 |
| |
254 | 254 |
| |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
255 | 261 |
| |
256 | 262 |
| |
257 | 263 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
213 | 213 |
| |
214 | 214 |
| |
215 | 215 |
| |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
216 | 222 |
| |
217 | 223 |
| |
218 | 224 |
| |
|
0 commit comments
Comments
(0)