From: Bruce Momjian <bruce@momjian.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Add missing_ok option to the SQL functions for reading files.
Date: Fri, 28 Aug 2015 08:39:26 -0400
Message-ID: <20150828123926.GA21830@momjian.us> (raw)
In-Reply-To: <CAB7nPqS=GTQpteX_2eY0XeGJ85EVA7CeA+tYF=YLEds3xj-LdA@mail.gmail.com>
References: <E1Z9HU9-0005Ru-Oa@gemulon.postgresql.org>
<CAB7nPqS=GTQpteX_2eY0XeGJ85EVA7CeA+tYF=YLEds3xj-LdA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
On Sun, Jul 5, 2015 at 08:44:41PM +0900, Michael Paquier wrote:
> On Mon, Jun 29, 2015 at 3:39 AM, Heikki Linnakangas
> <heikki.linnakangas@iki.fi> wrote:
> > Add missing_ok option to the SQL functions for reading files.
> >
> > This makes it possible to use the functions without getting errors, if there
> > is a chance that the file might be removed or renamed concurrently.
> > pg_rewind needs to do just that, although this could be useful for other
> > purposes too. (The changes to pg_rewind to use these functions will come in
> > a separate commit.)
> >
> > The read_binary_file() function isn't very well-suited for extensions.c's
> > purposes anymore, if it ever was. So bite the bullet and make a copy of it
> > in extension.c, tailored for that use case. This seems better than the
> > accidental code reuse, even if it's a some more lines of code.
>
> This has been done done as the part of a fix for the issues with
> pg_rewind, but perhaps it should be mentioned in the release notes?
Yes, I will pick up that change during the creation of the 9.6 release
notes.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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: bruce@momjian.us, michael.paquier@gmail.com, heikki.linnakangas@iki.fi
Subject: Re: pgsql: Add missing_ok option to the SQL functions for reading files.
In-Reply-To: <20150828123926.GA21830@momjian.us>
References: <E1Z9HU9-0005Ru-Oa@gemulon.postgresql.org> <CAB7nPqS=GTQpteX_2eY0XeGJ85EVA7CeA+tYF=YLEds3xj-LdA@mail.gmail.com> <20150828123926.GA21830@momjian.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