Re: reloption to prevent VACUUM from truncating empty pages at the end of relation
Fujii Masao <masao.fujii@gmail.com>
From: Fujii Masao <masao.fujii@gmail.com>
To: Masahiko Sawada <sawada.mshk@gmail.com>
Cc: Julien Rouhaud <rjuju123@gmail.com>,
Takayuki Tsunakawa <tsunakawa.takay@jp.fujitsu.com>, Alvaro Herrera <alvherre@2ndquadrant.com>,
Andres Freund <andres@anarazel.de>, Tom Lane <tgl@sss.pgh.pa.us>, Robert Haas <robertmhaas@gmail.com>, David Steele <david@pgmasters.net>, "Bossart, Nathan" <bossartn@amazon.com>, Andrew Dunstan <andrew.dunstan@2ndquadrant.com>,
Michael Paquier <michael@paquier.xyz>, Laurenz Albe <laurenz.albe@cybertec.at>, "Jamison,
Kirk" <k.jamison@jp.fujitsu.com>, Amit Kapila <amit.kapila16@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-05-07T17:14:04Z
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 →
-
Add TRUNCATE parameter to VACUUM.
- b84dbc8eb80b 12.0 landed
-
Add vacuum_truncate reloption.
- 119dcfad988d 12.0 landed
-
Allow VACUUM to be run with index cleanup disabled.
- a96c41feec6b 12.0 cited
On Tue, May 7, 2019 at 5:33 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote: > > On Mon, Apr 8, 2019 at 7:29 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote: > > > > On Mon, Apr 8, 2019 at 7:22 PM Fujii Masao <masao.fujii@gmail.com> wrote: > > > > > > On Mon, Apr 8, 2019 at 5:30 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote: > > > > > > > > On Mon, Apr 8, 2019 at 5:15 PM Fujii Masao <masao.fujii@gmail.com> wrote: > > > > > > > > > > On Mon, Apr 8, 2019 at 3:58 PM Julien Rouhaud <rjuju123@gmail.com> wrote: > > > > > > > > > > > > On Mon, Apr 8, 2019 at 8:01 AM Fujii Masao <masao.fujii@gmail.com> wrote: > > > > > > > > > > > > > > 2019年4月8日(月) 14:22 Tsunakawa, Takayuki <tsunakawa.takay@jp.fujitsu.com>: > > > > > > >> > > > > > > >> From: Alvaro Herrera [mailto:alvherre@2ndquadrant.com] > > > > > > >> > "vacuum_truncate" gets my vote too. > > > > > > >> > > > > > > >> +1 > > > > > > > > > > > > > > > > > > > > > +1 > > > > > > > ISTM that we have small consensus to > > > > > > > use "vacuum_truncate". > > > > > > > > > > > > I'm also fine with this name, and I also saw reports that this option > > > > > > is already needed in some production workload, as Andres explained. > > > > > > > > > > OK, so I pushed the "vacuum_truncate" version of the patch. > > > > > > > > Thank you! > > > > > > > > "TRUNCATE" option for vacuum command should be added to the open items? > > > > > > Yes, I think. > > > > Added. > > > > > Attached is the patch which adds TRUNCATE option into VACUUM. > > > > Thank you for the patch! I will review it. > > > > Sorry for the late. I've reviewed the patch and it looks good to me. Thanks for the review! I committed the patch. Regards, -- Fujii Masao