Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGXdw-00036a-25 for pgsql-committers@arkaria.postgresql.org; Sun, 19 Nov 2017 22:00:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGXdv-00048F-Hi for pgsql-committers@arkaria.postgresql.org; Sun, 19 Nov 2017 22:00:47 +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_2) (envelope-from ) id 1eGXdv-000484-AB for pgsql-committers@lists.postgresql.org; Sun, 19 Nov 2017 22:00:47 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eGXdp-0008K9-3o for pgsql-committers@postgresql.org; Sun, 19 Nov 2017 22:00:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vAJM0ah6031533; Sun, 19 Nov 2017 17:00:36 -0500 From: Tom Lane To: Thomas Munro cc: Andres Freund , pgsql-committers Subject: Re: pgsql: Remove BufFile's isTemp flag. In-reply-to: References: <23339.1510887494@sss.pgh.pa.us> <20171117031149.hslkxis732hkjuog@alap3.anarazel.de> <24110.1510888651@sss.pgh.pa.us> <32216.1510935834@sss.pgh.pa.us> <20171117175811.qgrs75pgyhl42kgr@alap3.anarazel.de> Comments: In-reply-to Thomas Munro message dated "Mon, 20 Nov 2017 10:55:26 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31531.1511128836.1@sss.pgh.pa.us> Date: Sun, 19 Nov 2017 17:00:36 -0500 Message-ID: <31532.1511128836@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: >> On 2017-11-17 11:23:54 -0500, Tom Lane wrote: >>> I wonder whether we should then rename BufFileCreateTemp to just >>> BufFileCreate, since it's no longer possible to have a BufFile that >>> isn't temp. > Here's a patch that does those things. I'm slightly surprised by the > renaming suggestion though, because it means that an extension that > uses BufFile will need to know how to select the v10 and v11 function > name as appropriate. Would you backpatch redirect support for the new > name to older versions? No, but if you're concerned about it, we could maintain API compatibility for extensions with something like #define BufFileCreateTemp(interXact) BufFileCreate(interXact) Typically we expect extensions to provide such workarounds for cases that concern them ... but since this change is purely cosmetic, maybe it should be treated differently. regards, tom lane