Re: Calling PrepareTempTablespaces in BufFileCreateTemp

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Melanie Plageman <melanieplageman@gmail.com>, Michael Paquier <michael@paquier.xyz>, Ashwin Agrawal <aagrawal@pivotal.io>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2019-05-18T01:36:29Z
Lists: pgsql-hackers
Peter Geoghegan <pg@bowt.ie> writes:
> On Tue, Apr 30, 2019 at 3:22 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> So now I'm feeling more favorable about the idea of adding a
>> PrepareTempTablespaces call to BufFileCreateTemp, and just stopping
>> with that.  If we want to do more, I feel like it requires a
>> significant amount of rethinking about what the expectations are for
>> fd.c, and some rejiggering of PrepareTempTablespaces's API too.
>> I'm not sufficiently excited about this issue to do that.

> +1. Let's close this one out.

Will do so tomorrow.  Should we back-patch this?

			regards, tom lane



Commits

  1. Make BufFileCreateTemp() ensure that temp tablespaces are set up.