Re: Fixes inconsistent behavior in vacuum when it processes multiple relations
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: shihao zhong <zhong950419@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2025-06-19T20:30:26Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Rationalize handling of VacuumParams
- 2252fcd4276c 19 (unreleased) landed
-
Avoid scribbling of VACUUM options
- 65c3223f93a0 13.22 landed
- c079ba3fc2a4 14.19 landed
- 354944663df3 15.14 landed
- d187cabddadc 16.10 landed
- 2e0b5d252b10 17.6 landed
- 661643dedad9 18.0 landed
Attachments
- vacuum_params_v3.patch (text/plain) patch v3
On Wed, Jun 18, 2025 at 02:48:16PM -0400, shihao zhong wrote: >>> That leads me to think (1) might be the better option, although I'm not too >>> wild about the subtlety of the fix. > > Thanks for your feedback. New patch is attached. I also updated the > signature of do_analyze_rel for the same reason. After thinking about this some more, I'm wondering if it would be better to pursue option (2) because it's a little less invasive (which is important because this will need to be back-patched). In any case, we have a similar problem when recursing to the TOAST table, which can be fixed by copying the params at the top of vacuum_rel(). While testing out the attached patch, I noticed a couple of other interesting problems in this area [0]. [0] https://postgr.es/m/aFRxC1W_kZU9OjJ9%40nathan -- nathan