Re: Report the number of skipped frozen pages by manual VACUUM
Masahiko Sawada <sawada.mshk@gmail.com>
From: Masahiko Sawada <sawada.mshk@gmail.com>
To: Yugo Nagata <nagata@sraoss.co.jp>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-03-07T02:34:21Z
Lists: pgsql-hackers
Attachments
- report_frozen_skipped_pages_v2.patch (application/octet-stream) patch v2
On Mon, Mar 6, 2017 at 12:12 PM, Yugo Nagata <nagata@sraoss.co.jp> wrote: > Hi, > > I think this is good since the information is useful and it is > a little change. Thank you for reviewing this patch! > > One thing I'm bothered is that even when the number of frozen page is > one, it will say "1 frozen pages". In other messages, when the > number of page is one, the word "page" rather than "pages" is used > by using ngettext(). I don't think it can say "1 frozen pages" because the number of skipped pages according to visibility map is always more than 32 (SKIP_PAGES_THRESHOLD). > > In addition, the document (doc/src/sgml/ref/vacuum.sgml) need a modification > to use the new messages in its example. Fixed. > > BTW, this patch can't be applied after the following commit. > > commit 9eb344faf54a849898d9be012ddfa8204cfeb57c > Author: Simon Riggs <simon@2ndQuadrant.com> > Date: Fri Mar 3 19:18:25 2017 +0530 > > Allow vacuums to report oldestxmin Attached updated v2 patch. Regards, -- Masahiko Sawada NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center
Commits
-
Make VACUUM VERBOSE report the number of skipped frozen pages.
- 70adf2fbe18f 10.0 landed
-
Allow vacuums to report oldestxmin
- 9eb344faf54a 10.0 cited