Re: BUG #14941: Vacuum crashes
Nathan Bossart <bossartn@amazon.com>
From: "Bossart, Nathan" <bossartn@amazon.com>
To: Masahiko Sawada <sawada.mshk@gmail.com>,
Michael Paquier <michael.paquier@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, Lyes Ameddah <lyes.amd@gmail.com>,
Tomas Vondra <tomas.vondra@2ndquadrant.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>,
"pgsql-bugs@postgresql.org" <pgsql-bugs@postgresql.org>
Date: 2017-12-18T17:35:52Z
Lists: pgsql-bugs, pgsql-hackers
Attachments
- 0001_fix_unparenthesized_vacuum_grammar_v2.patch (application/octet-stream) patch v2
- 0002_add_parenthesized_analyzed_syntax_v2.patch (application/octet-stream) patch v2
- 0003_add_nowait_vacuum_option_v2.patch (application/octet-stream) patch v2
On 12/11/17, 9:41 PM, "Masahiko Sawada" <sawada.mshk@gmail.com> wrote: > For 0003 patch, if we do VACUUM (NOWAIT) to whole database we don't > get the above WARNING messages, but I think we should get them. The > reported issue also did VACUUM FULL and REINDEX to whole database. > Especially when VACUUM to whole database the information of skipped > relations would be useful for users. Here is a new set of patches. 0001 and 0002 are essentially the same as before except for a rebase and some small indentation fixes. 0003 now includes logic to log all skipped relations regardless of whether they were specified in the command. I've also modified the isolation test slightly to use partitioned tables instead of running VACUUM and ANALYZE on the whole database. This helps prevent timeouts on build- farm machines with CLOBBER_CACHE_ALWAYS enabled (like with 0a3edbb3). Nathan
Commits
-
Add option SKIP_LOCKED to VACUUM and ANALYZE
- 803b1301e8c9 12.0 landed
-
Rename VACOPT_NOWAIT to VACOPT_SKIP_LOCKED
- edc6b41bd4a8 12.0 landed
-
Add parenthesized options syntax for ANALYZE.
- 854dd8cff523 11.0 landed
-
Don't allow VACUUM VERBOSE ANALYZE VERBOSE.
- 921059bd66c7 11.0 landed
-
Fix inadequate locking during get_rel_oids().
- 19de0ab23ccb 11.0 cited
-
Avoid having autovacuum workers wait for relation locks.
- 32896c40ca76 9.1.0 cited