Refactor relation opening for VACUUM and ANALYZE
Michael Paquier <michael@paquier.xyz>
Refactor relation opening for VACUUM and ANALYZE VACUUM and ANALYZE share similar logic when it comes to opening a relation to work on in terms of how the relation is opened, in which order locks are tried and how logs should be generated when something does not work as expected. This commit refactors things so as both use the same code path to handle the way a relation is opened, so as the integration of new options becomes easier. Author: Michael Paquier Reviewed-by: Nathan Bossart Discussion: https://postgr.es/m/20180927075152.GT1659@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/analyze.c | modified | +6 −49 |
| src/backend/commands/vacuum.c | modified | +109 −60 |
| src/include/commands/vacuum.h | modified | +2 −0 |
Discussion
- Add SKIP LOCKED to VACUUM and ANALYZE 24 messages · 2018-06-13 → 2018-10-04