Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGZbZ-00050V-8R for pgsql-committers@arkaria.postgresql.org; Mon, 20 Nov 2017 00:06:29 +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 1eGZbX-00087O-CA for pgsql-committers@arkaria.postgresql.org; Mon, 20 Nov 2017 00:06:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eGZbX-00087E-0F for pgsql-committers@lists.postgresql.org; Mon, 20 Nov 2017 00:06:27 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eGZbQ-0008DW-0Y for pgsql-committers@postgresql.org; Mon, 20 Nov 2017 00:06:25 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0EC6320A11; Sun, 19 Nov 2017 19:06:17 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Sun, 19 Nov 2017 19:06:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=JtD7Q5IozIkYI+AQRL0mZFfuXeOuw 8HEdPIAqFS7m6k=; b=QngXUxI5FwadnkTxGQ/XPbJv8jvv2qJZr1TXmwrc7H70y 5JnqsFo4L9h2bmaXpn6SkjQERxgNZtx4eAKEAM5BU2dzBiXWaaS68f9/lMjb9g5S aStAniwzsIYDkSq2O0DfdJYkQpaceHuG+JOlqWUJpjZUUIqerUN7YvvkFtx8YY+t 4z+Qo1++GP1FETpcimoJ28vg8+qIkLKLxa+RPxhBRpHiQAxVNPFGEF6vChJ5IcHU mUKa9jhhZNcVVRYJBl64tLgV5fUx0ypWAk22uuTmWZoPlNO9b8DWxGBPMtk4bQgw 6Q4OgUCIH/3WdKH4FSpe4pwaJWDmJv+NvnaHvpTVg== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id BF4C224254; Sun, 19 Nov 2017 19:06:16 -0500 (EST) Date: Sun, 19 Nov 2017 16:06:15 -0800 From: Andres Freund To: Tom Lane Cc: Thomas Munro , pgsql-committers Subject: Re: pgsql: Remove BufFile's isTemp flag. Message-ID: <20171120000615.36f32ayw67xyy3h6@alap3.anarazel.de> 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> <31532.1511128836@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31532.1511128836@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2017-11-19 17:00:36 -0500, Tom Lane wrote: > 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) I don't really see a point in doing this renaming in the first place. It's not like the Temp suffix has become inaccurate. I'd perhaps not add it in the green field, but I don't see a need to change an existing function name. If anything it seems confusing because you'd miss something when trivially searching the history / comparing branches. Greetings, Andres Freund