Re: pgsql: Remove BufFile's isTemp flag.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Andres Freund <andres(at)anarazel(dot)de>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Remove BufFile's isTemp flag.
Date: 2017-11-17 17:51:05
Message-ID: CAH2-WzkyrX6iTf2aB0Fzrew+rqPxJ40yMcVCE7Tq5MO1xpyVDA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On Fri, Nov 17, 2017 at 8:23 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> We should flat-out remove the function, since this change makes it
> impossible to resurrect with its old semantics. 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.
> I suspect that some attention to the comments might be needed too.

+1

> Or maybe we should revert 11e264517. It doesn't seem to be buying
> much to make up for the loss of flexibility.

Thomas wrote code that makes it possible to extend individual BufFiles
with other BufFiles across backends. This code will be used by
parallel CREATE INDEX, though it is something included in recent
versions of his parallel hash join patchset. This process happens at a
higher level than buffile.c, and should get the tricky details of
resource management right.

I think it's likely that this will be committed for v11.

--
Peter Geoghegan

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-11-17 17:53:23 pgsql: Remove contrib/start-scripts/osx/.
Previous Message Tom Lane 2017-11-17 17:48:02 pgsql: Provide modern examples of how to auto-start Postgres on macOS.