pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix temporary tablespaces for shared filesets
Date: Fri, 03 Jul 2020 13:13:24 +0000
Message-ID: <E1jrLVM-0001Pl-Er@gemulon.postgresql.org> (raw)

Fix temporary tablespaces for shared filesets

A likely copy/paste error in 98e8b480532 from  back in 2004 would
cause temp tablespace to be reset to InvalidOid if temp_tablespaces
was set to the same value as the primary tablespace in the database.
This would cause shared filesets (such as for parallel hash joins)
to ignore them, putting the temporary files in the default tablespace
instead of the configured one. The bug is in the old code, but it
appears to have been exposed only once we had shared filesets.

Reviewed-By: Daniel Gustafsson
Discussion: https://postgr.es/m/CABUevExg5YEsOvqMxrjoNvb3ApVyH+9jggWGKwTDFyFCVWczGQ@mail.gmail.com
Backpatch-through: 9.5

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/28a862e9dcc4559e7c41c8f7d84dc7b3a0c928a2

Modified Files
--------------
src/backend/commands/tablespace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)



view thread (14+ messages)  latest in thread

Message-ID: <E1jrLVM-0001Pl-Er@gemulon.postgresql.org>
Permalink:  ../E1jrLVM-0001Pl-Er@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jrLVM-0001Pl-Er@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: magnus@hagander.net
  Subject: Re: pgsql: Fix temporary tablespaces for shared filesets
  In-Reply-To: <E1jrLVM-0001Pl-Er@gemulon.postgresql.org>
  References: <E1jrLVM-0001Pl-Er@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox