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>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2019-04-25T00:55:01Z
Lists: pgsql-hackers
Peter Geoghegan <pg@bowt.ie> writes:
> ... I'm not
> seeing why the context that the PrepareTempTablespaces() catalog
> access occurs in actually matters.

The point there is that a catalog access might leak some amount of
memory.  Probably not enough to be a big deal, but ...

			regards, tom lane



Commits

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