From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: pgsql-committers <pgsql-committers@postgresql.org>
Subject: Re: pgsql: Improve error handling in RemovePgTempFiles().
Date: Sun, 07 Jan 2018 21:22:25 -0500
Message-ID: <30564.1515378145@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEepm=2cSkY_MkirVbGRpAaxL5GDfS+W6N0GjTADCuZsKjtTLg@mail.gmail.com>
References: <E1eLziJ-0005Dh-PN@gemulon.postgresql.org>
<CAEepm=2y06SehAkTnd5sU_eVqdv5P-=Srt1y5vYNQk6yVDVaPw@mail.gmail.com>
<17683.1515343346@sss.pgh.pa.us>
<28071.1515375705@sss.pgh.pa.us>
<CAEepm=2cSkY_MkirVbGRpAaxL5GDfS+W6N0GjTADCuZsKjtTLg@mail.gmail.com>
Thomas Munro <thomas.munro@enterprisedb.com> writes:
> On Mon, Jan 8, 2018 at 2:41 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Hearing no comments, I did it the first way.
> It's funny that the two boolean arguments are always opposite.
> They're essentially both saying "top level?".
Yeah. I thought about using a single "bool top_level" argument instead,
but concluded that this way is clearer and potentially more flexible.
There are other places where we have similar cases of flag arguments
that are redundant in current usage, but we leave it like that for
clarity as to what the function's API spec is.
regards, tom lane
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: tgl@sss.pgh.pa.us, thomas.munro@enterprisedb.com
Subject: Re: pgsql: Improve error handling in RemovePgTempFiles().
In-Reply-To: <30564.1515378145@sss.pgh.pa.us>
References: <E1eLziJ-0005Dh-PN@gemulon.postgresql.org> <CAEepm=2y06SehAkTnd5sU_eVqdv5P-=Srt1y5vYNQk6yVDVaPw@mail.gmail.com> <17683.1515343346@sss.pgh.pa.us> <28071.1515375705@sss.pgh.pa.us> <CAEepm=2cSkY_MkirVbGRpAaxL5GDfS+W6N0GjTADCuZsKjtTLg@mail.gmail.com> <30564.1515378145@sss.pgh.pa.us>
* 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