Calling PrepareTempTablespaces in BufFileCreateTemp - Mailing list pgsql-hackers

From Melanie Plageman
Subject Calling PrepareTempTablespaces in BufFileCreateTemp
Date
Msg-id CAAKRu_YwzjuGAmmaw4-8XO=OVFGR1QhY_Pq-t3wjb9ribBJb_Q@mail.gmail.com
Whole thread Raw
Responses Re: Calling PrepareTempTablespaces in BufFileCreateTemp
List pgsql-hackers
Hi,
PrepareTempTablespaces is called by most callers of BufFileCreateTemp, so I was
wondering if there is a reason not to call it inside BufFileCreateTemp.

As a developer using BufFileCreateTemp to write code that will create spill
files, it was easy to forget the extra step of checking the temp_tablespaces
GUC to ensure I create the spill files there if it is set.

Thanks,
Melanie Plageman

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: speeding up planning with partitions
Next
From: Robert Haas
Date:
Subject: Re: pg_dump is broken for partition tablespaces