Re: Minor typo

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>
Cc: michael(at)paquier(dot)xyz, tgl(at)sss(dot)pgh(dot)pa(dot)us, daniel(at)yesql(dot)se, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Minor typo
Date: 2018-12-04 16:37:16
Message-ID: 20181204163716.GR3415@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greetings,

* Kyotaro HORIGUCHI (horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp) wrote:
> At Wed, 28 Nov 2018 10:01:36 +0900, Michael Paquier <michael(at)paquier(dot)xyz> wrote in <20181128010136(dot)GU1716(at)paquier(dot)xyz>
> > On Tue, Nov 27, 2018 at 07:51:03PM -0500, Stephen Frost wrote:
> > > That isn't at all what I got from that.
> > >
> > > A rewrite of this really should avoid talking about removing the hole as
> > > if it's 'compression' because, first of all, it isn't, and second, now
> > > that we have *actual* compression happening, it's terribly confusing to
> > > talk about removing the hole using that terminology.
> >
> > You may want to be careful about other comments in xloginsert.c or such
> > then. Removing a page hole is mentioned in a couple of places as a form
> > of compression if I recall correctly.
>
> org> When wal_compression is enabled, a full page image which "hole" was
> org> removed is additionally compressed using PGLZ compression algorithm.
>
> Even though it has an obvious mistake, I could read this as
> full_page_image is always compressed after removing a hole in it
> if any. (I'm not sure it makes correct sense, though.) I feel
> hopelessly that the sentence structure model in my mind is
> different from that of natives. I need to study harder, but..

Thanks to everyone for sharing their thoughts here, the goal is simply
to try and have the comments as clear as we can for everyone.

Please find attached a larger rewording of the comment in xlogrecord.h,
and a minor change to xloginsert.c to clarify that we're removing a hole
and not doing compression at that point.

Other thoughts on this..?

Thanks!

Stephen

Attachment Content-Type Size
fix-xlog-typo-reword.patch text/x-diff 2.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2018-12-04 17:01:04 Re: Connections hang indefinitely while taking a gin index's LWLock buffer_content lock
Previous Message Alvaro Herrera 2018-12-04 15:46:18 Re: psql display of foreign keys