forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita3dc926
committed
Refactor option handling of CLUSTER, REINDEX and VACUUM
This continues the work done inb5913f6. All the options of thosecommands are changed to use hex values rather than enums to reduce therisk of compatibility bugs when introducing new options. Each optionset is moved into a new structure that can be extended with morenon-boolean options (this was already the case of VACUUM). The code ofREINDEX is restructured so as manual REINDEX commands go through asingle routine from utility.c, like VACUUM, to ease the allocationhandling of option parameters when a command needs to go throughmultiple transactions.This can be used as a base infrastructure for future patches related tothose commands, including reindex filtering and tablespace support.Per discussion with people mentioned below, as well as Alvaro Herreraand Peter Eisentraut.Author: Michael Paquier, Justin PryzbyReviewed-by: Alexey Kondratov, Justin PryzbyDiscussion:https://postgr.es/m/X8riynBLwxAD9uKk@paquier.xyz1 parent04eb75e commita3dc926
File tree
11 files changed
+175
-149
lines changed- src
- backend
- catalog
- commands
- tcop
- include
- catalog
- commands
- tools/pgindent
11 files changed
+175
-149
lines changedLines changed: 12 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3594 | 3594 |
| |
3595 | 3595 |
| |
3596 | 3596 |
| |
3597 |
| - | |
| 3597 | + | |
3598 | 3598 |
| |
3599 | 3599 |
| |
3600 | 3600 |
| |
3601 | 3601 |
| |
3602 | 3602 |
| |
3603 | 3603 |
| |
3604 | 3604 |
| |
3605 |
| - | |
| 3605 | + | |
3606 | 3606 |
| |
3607 | 3607 |
| |
3608 | 3608 |
| |
| |||
3611 | 3611 |
| |
3612 | 3612 |
| |
3613 | 3613 |
| |
3614 |
| - | |
| 3614 | + | |
3615 | 3615 |
| |
3616 | 3616 |
| |
3617 | 3617 |
| |
3618 | 3618 |
| |
3619 |
| - | |
| 3619 | + | |
3620 | 3620 |
| |
3621 | 3621 |
| |
3622 | 3622 |
| |
| |||
3792 | 3792 |
| |
3793 | 3793 |
| |
3794 | 3794 |
| |
3795 |
| - | |
| 3795 | + | |
3796 | 3796 |
| |
3797 | 3797 |
| |
3798 | 3798 |
| |
| |||
3846 | 3846 |
| |
3847 | 3847 |
| |
3848 | 3848 |
| |
3849 |
| - | |
| 3849 | + | |
3850 | 3850 |
| |
3851 | 3851 |
| |
3852 | 3852 |
| |
| |||
3861 | 3861 |
| |
3862 | 3862 |
| |
3863 | 3863 |
| |
3864 |
| - | |
| 3864 | + | |
3865 | 3865 |
| |
3866 | 3866 |
| |
3867 | 3867 |
| |
| |||
3935 | 3935 |
| |
3936 | 3936 |
| |
3937 | 3937 |
| |
3938 |
| - | |
| 3938 | + | |
3939 | 3939 |
| |
3940 | 3940 |
| |
3941 | 3941 |
| |
| |||
3965 | 3965 |
| |
3966 | 3966 |
| |
3967 | 3967 |
| |
3968 |
| - | |
3969 |
| - | |
| 3968 | + | |
| 3969 | + | |
| 3970 | + | |
| 3971 | + | |
3970 | 3972 |
| |
3971 | 3973 |
| |
3972 | 3974 |
| |
|
Lines changed: 11 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 |
| - | |
| 106 | + | |
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
124 |
| - | |
| 124 | + | |
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
| |||
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
195 |
| - | |
| 195 | + | |
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
| |||
234 | 234 |
| |
235 | 235 |
| |
236 | 236 |
| |
| 237 | + | |
237 | 238 |
| |
238 | 239 |
| |
239 | 240 |
| |
240 | 241 |
| |
241 | 242 |
| |
242 | 243 |
| |
| 244 | + | |
243 | 245 |
| |
244 |
| - | |
| 246 | + | |
245 | 247 |
| |
246 | 248 |
| |
247 | 249 |
| |
| |||
272 | 274 |
| |
273 | 275 |
| |
274 | 276 |
| |
275 |
| - | |
| 277 | + | |
276 | 278 |
| |
277 | 279 |
| |
278 |
| - | |
279 |
| - | |
| 280 | + | |
| 281 | + | |
280 | 282 |
| |
281 | 283 |
| |
282 | 284 |
| |
| |||
1355 | 1357 |
| |
1356 | 1358 |
| |
1357 | 1359 |
| |
| 1360 | + | |
1358 | 1361 |
| |
1359 | 1362 |
| |
1360 | 1363 |
| |
| |||
1412 | 1415 |
| |
1413 | 1416 |
| |
1414 | 1417 |
| |
1415 |
| - | |
| 1418 | + | |
1416 | 1419 |
| |
1417 | 1420 |
| |
1418 | 1421 |
| |
|
0 commit comments
Comments
(0)