Re: visibility map corruption

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: "Drouvot, Bertrand" <bdrouvot(at)amazon(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Floris Van Nee <florisvannee(at)optiver(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>, Peter Geoghegan <pg(at)bowt(dot)ie>
Subject: Re: visibility map corruption
Date: 2021-07-08 13:08:03
Message-ID: 20210708130803.GA1132@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jul 8, 2021 at 07:35:58AM +0200, Drouvot, Bertrand wrote:
> Thanks for having looked at it.
>
> It looks good to me, but i have one question:
>
> +    printf(_("  -u, --oldest-transaction-id=XID  set oldest transaction
> ID\n"));
>
> and
>
> +                   if (!TransactionIdIsNormal(set_oldest_xid))
> +                   {
> +                        pg_log_error("oldest transaction ID (-u) must be
> greater or equal to %u", FirstNormalTransactionId);
> +                        exit(1);
> +                   }
>
> I am wondering if we should not keep my original proposal "oldest unfrozen
> transaction" (as compare to "oldest transaction") in both output to:
>
> - make the wording similar with what we can found in StartupXLOG():
>
>     ereport(DEBUG1,
>             (errmsg_internal("oldest unfrozen transaction ID: %u, in
> database %u",
>                              checkPoint.oldestXid,
> checkPoint.oldestXidDB)));
>
> - give the new  "-u" a sense (somehow) from a naming point of view.
>
> What do you think?

I was wondering about that too. We don't use the term "unfrozen" in the
pg_control output, and only in a few places in our docs. I added the
word "unfrozen" for the -u doc description in this updated patch ---
not sure how much farther to go in using this term, but I am afraid if I
use it in the areas you suggested above, it will confuse people who are
trying to match it to the pg_control output.

--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EDB https://enterprisedb.com

If only the physical world exists, free will is an illusion.

Attachment Content-Type Size
oldestxid.diff.gz application/gzip 3.2 KB
oldestxid.diff.gz application/gzip 3.2 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2021-07-08 13:11:14 Re: visibility map corruption
Previous Message Masahiko Sawada 2021-07-08 13:00:18 Small documentation improvement for ALTER SUBSCRIPTION