Re: reloption to prevent VACUUM from truncating empty pages at the end of relation
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, Tom Lane <tgl@sss.pgh.pa.us>, Alvaro Herrera <alvherre@alvh.no-ip.org>, Fujii Masao <masao.fujii@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2018-04-19T00:58:18Z
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 Wed, Apr 18, 2018 at 07:41:44PM +0530, Amit Kapila wrote: > I think it makes sense to pursue that approach, but it might be worth > considering some alternative till we have it. I remember last time > (in 2015) we have discussed some another solution [1] to this problem > (or similar) and we have left it unattended in the hope that we will > get a better solution, but we are still in the same situation. I > think in general it is better to go with the approach which can fix > the root cause of the problem, but if that is going to take a long > time, it is not terrible to provide some workable solution which can > help users. Yeah, I can understand that feeling. When we talked about the compression of FPWs back in 9.5, we discussed that if we had double-writes then this would not be necessary, and we are still with wal_compression but without double writes (actually, it happens that compression of pages can also be used with double writes, but that's enough highjacking for this thread..). Then, let's consider the beginning of the first commit fest of v12 as judgement. Implementing radix tree for shared buffers is a long-term project, which has no guarantee to get merged, while a visibly-simple reloptions which helps in some cases... -- Michael