Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZVKTV-0005y2-KN for pgsql-committers@arkaria.postgresql.org; Fri, 28 Aug 2015 14:17:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZVKTV-0004X2-6J for pgsql-committers@arkaria.postgresql.org; Fri, 28 Aug 2015 14:17:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZVKTU-0004Wn-LA for pgsql-committers@postgresql.org; Fri, 28 Aug 2015 14:17:48 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZVKTR-0004vS-PU for pgsql-committers@postgresql.org; Fri, 28 Aug 2015 14:17:47 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1ZVKTQ-0003VZ-2d; Fri, 28 Aug 2015 10:17:44 -0400 Date: Fri, 28 Aug 2015 10:17:44 -0400 From: Bruce Momjian To: Michael Paquier Cc: Heikki Linnakangas , pgsql-committers@postgresql.org Subject: Re: pgsql: Add missing_ok option to the SQL functions for reading files. Message-ID: <20150828141744.GC21830@momjian.us> References: <20150828123926.GA21830@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On Fri, Aug 28, 2015 at 09:41:08PM +0900, Michael Paquier wrote: > On Fri, Aug 28, 2015 at 9:39 PM, Bruce Momjian wrote: > > On Sun, Jul 5, 2015 at 08:44:41PM +0900, Michael Paquier wrote: > >> On Mon, Jun 29, 2015 at 3:39 AM, Heikki Linnakangas > >> 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. > > Even if it has been introduced in 9.5? Well, this is where I got lost then, because I only see it going into master, which, uh, I thought was 9.6, but I am now realizing this was committed before we branched. :-( This will be picked up when the 9.5 release notes are updated to match git. Actually, I now see this in the 9.5 release notes: Current as of 2015-08-03 This was updated by Tom: ecc2d16b (Tom Lane 2015-08-03 12:29:10 -0400 10) Current as of 2015-08-03 and I see Tom added it properly: Add an optional missing_ok argument to pg_read_file() and related functions (Michael Paquier, Heikki Linnakangas) so, after all that detail, I think we are good. -- Bruce Momjian 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