Commit 9ebe057
committed
Refactor cluster_rel() to handle more options
This extends cluster_rel() in such a way that more options can be added
in the future, which will reduce the amount of chunk code for an
upcoming SKIP_LOCKED aimed for VACUUM. As VACUUM FULL is a different
flavor of CLUSTER, we want to make that extensible to ease integration.
This only reworks the API and its callers, without providing anything
user-facing. Two options are present now: verbose mode and relation
recheck when doing the cluster command work across multiple
transactions. This could be used as well as a base to extend the
grammar of CLUSTER later on.
Author: Michael Paquier
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/20180723031058.GE2854@paquier.xyz1 parent d9fadbf commit 9ebe057
File tree
8 files changed
+32
-13
lines changed- src
- backend
- commands
- nodes
- parser
- include
- commands
- nodes
- tools/pgindent
8 files changed
+32
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
| 189 | + | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
| 238 | + | |
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
| |||
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
268 | | - | |
| 269 | + | |
269 | 270 | | |
270 | 271 | | |
| 272 | + | |
| 273 | + | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1551 | 1551 | | |
1552 | 1552 | | |
1553 | 1553 | | |
| 1554 | + | |
| 1555 | + | |
1554 | 1556 | | |
1555 | 1557 | | |
1556 | 1558 | | |
1557 | 1559 | | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
1558 | 1563 | | |
1559 | | - | |
1560 | | - | |
| 1564 | + | |
1561 | 1565 | | |
1562 | 1566 | | |
1563 | 1567 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3284 | 3284 | | |
3285 | 3285 | | |
3286 | 3286 | | |
3287 | | - | |
| 3287 | + | |
3288 | 3288 | | |
3289 | 3289 | | |
3290 | 3290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1206 | 1206 | | |
1207 | 1207 | | |
1208 | 1208 | | |
1209 | | - | |
| 1209 | + | |
1210 | 1210 | | |
1211 | 1211 | | |
1212 | 1212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10478 | 10478 | | |
10479 | 10479 | | |
10480 | 10480 | | |
10481 | | - | |
| 10481 | + | |
| 10482 | + | |
| 10483 | + | |
10482 | 10484 | | |
10483 | 10485 | | |
10484 | 10486 | | |
10485 | 10487 | | |
10486 | 10488 | | |
10487 | 10489 | | |
10488 | 10490 | | |
10489 | | - | |
| 10491 | + | |
| 10492 | + | |
| 10493 | + | |
10490 | 10494 | | |
10491 | 10495 | | |
10492 | 10496 | | |
| |||
10495 | 10499 | | |
10496 | 10500 | | |
10497 | 10501 | | |
10498 | | - | |
| 10502 | + | |
| 10503 | + | |
| 10504 | + | |
10499 | 10505 | | |
10500 | 10506 | | |
10501 | 10507 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3112 | 3112 | | |
3113 | 3113 | | |
3114 | 3114 | | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
3115 | 3121 | | |
3116 | 3122 | | |
3117 | 3123 | | |
3118 | 3124 | | |
3119 | 3125 | | |
3120 | | - | |
| 3126 | + | |
3121 | 3127 | | |
3122 | 3128 | | |
3123 | 3129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
333 | 334 | | |
334 | 335 | | |
335 | 336 | | |
| |||
0 commit comments