Re: reloption to prevent VACUUM from truncating empty pages at the end of relation

From: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
To: masao(dot)fujii(at)gmail(dot)com
Cc: sawada(dot)mshk(at)gmail(dot)com, rjuju123(at)gmail(dot)com, tsunakawa(dot)takay(at)jp(dot)fujitsu(dot)com, alvherre(at)2ndquadrant(dot)com, andres(at)anarazel(dot)de, tgl(at)sss(dot)pgh(dot)pa(dot)us, robertmhaas(at)gmail(dot)com, david(at)pgmasters(dot)net, bossartn(at)amazon(dot)com, andrew(dot)dunstan(at)2ndquadrant(dot)com, michael(at)paquier(dot)xyz, laurenz(dot)albe(at)cybertec(dot)at, k(dot)jamison(at)jp(dot)fujitsu(dot)com, amit(dot)kapila16(at)gmail(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: reloption to prevent VACUUM from truncating empty pages at the end of relation
Date: 2019-04-09 04:06:26
Message-ID: 20190409.130626.28507805.horiguchi.kyotaro@lab.ntt.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello.

At Mon, 8 Apr 2019 19:22:04 +0900, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote in <CAHGQGwHa_dX=dRcbR5QVTs6W5mgCy3qZ2fEwREaiXpES1B2+jw(at)mail(dot)gmail(dot)com>
> > "TRUNCATE" option for vacuum command should be added to the open items?
>
> Yes, I think.
> Attached is the patch which adds TRUNCATE option into VACUUM.

By the way, this might have been discussed upthread, but boolean
options of VACUUM command is defaulted to true. So, it seems to
me that the name is better (or convenient to me) to be
SKIP_TRUNCATE. The name of the reloption seems good to me.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2019-04-09 04:10:05 Re: 2019-03 Starts Tomorrow
Previous Message Michael Paquier 2019-04-09 04:03:38 Re: 2019-03 Starts Tomorrow