pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Fix thinko when bumping on temporary directories in pg_verify_ch
Date: Sat, 16 Mar 2019 10:38:01 +0900
Message-ID: <20190316013801.GA22963@paquier.xyz> (raw)
In-Reply-To: <CA+TgmoYr6=UiqPxe8jEeAXTePMWWhBzk4JBdp3dnNB7b97fCbg@mail.gmail.com>
References: <E1h4Ija-0007vd-Nr@gemulon.postgresql.org>
	<CA+TgmoabdZbeShuyCo=mzbnWM8JcA+54cLcFoV7emfzCQnCrvg@mail.gmail.com>
	<20190315005440.GL3493@paquier.xyz>
	<CA+TgmoYr6=UiqPxe8jEeAXTePMWWhBzk4JBdp3dnNB7b97fCbg@mail.gmail.com>

On Fri, Mar 15, 2019 at 10:09:57AM -0400, Robert Haas wrote:
> OK.  My other gripe with this commit message is that it doesn't
> actually explain what problem was being fixed.  You explain that it's
> wrong, and you explain why fixing it is not a big deal, but you never
> quite say what you're actually fixing.

I have re-read the commit log a couple of times, and I see your
point, sorry for the confusion.  I should have added an extra
paragraph to mention that when pg_verify_checksums sees a directory
folder name which matches PG_TEMP_FILES_DIR when scanning all the
entries of a path for checksum verification, then it would return
immediately, skipping all the follow-up entries in this path,
potentially missing checks in a portion of files.  The reason why it
is not a problem is actually that PG_TEMP_FILE_PREFIX and
PG_TEMP_FILES_DIR have the same value "pgsql_tmp", and that when
seeing an entry which matches PG_TEMP_FILE_PREFIX, then the scan of
the current folder would correctly move on to the next entry in the
current folder instead of simply returning and missing the next
entries.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (6+ messages)

Message-ID: <20190316013801.GA22963@paquier.xyz>
Permalink:  ../20190316013801.GA22963@paquier.xyz/
Also on:    postgresql.org/message-id/20190316013801.GA22963@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, robertmhaas@gmail.com
  Subject: Re: pgsql: Fix thinko when bumping on temporary directories in pg_verify_ch
  In-Reply-To: <20190316013801.GA22963@paquier.xyz>
  References: <E1h4Ija-0007vd-Nr@gemulon.postgresql.org> <CA+TgmoabdZbeShuyCo=mzbnWM8JcA+54cLcFoV7emfzCQnCrvg@mail.gmail.com> <20190315005440.GL3493@paquier.xyz> <CA+TgmoYr6=UiqPxe8jEeAXTePMWWhBzk4JBdp3dnNB7b97fCbg@mail.gmail.com> <20190316013801.GA22963@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox