From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify restriction handling of two-phase commit for temporary
Date: Sat, 26 Jan 2019 01:47:06 +0000
Message-ID: <E1gnD3q-0003ka-64@gemulon.postgresql.org> (raw)
Simplify restriction handling of two-phase commit for temporary objects
There were two flags used to track the access to temporary tables and
to the temporary namespace of a session which are used to restrict
PREPARE TRANSACTION, however the first control flag is a concept
included in the second. This removes the flag for temporary table
tracking, keeping around only the one at namespace level.
Author: Michael Paquier
Reviewed-by: Álvaro Herrera
Discussion: https://postgr.es/m/20190118053126.GH1883@paquier.xyz
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c9b75c5838feeae73dbae00bce9d8f650b80ba38
Modified Files
--------------
src/backend/access/common/relation.c | 4 ++--
src/backend/access/transam/xact.c | 19 ++++++-------------
src/backend/commands/lockcmds.c | 2 +-
src/backend/commands/tablecmds.c | 2 +-
src/include/access/xact.h | 12 +++---------
.../test_extensions/expected/test_extensions.out | 2 +-
src/test/regress/expected/temp.out | 22 +++++++++++-----------
7 files changed, 25 insertions(+), 38 deletions(-)
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: michael@paquier.xyz
Subject: Re: pgsql: Simplify restriction handling of two-phase commit for temporary
In-Reply-To: <E1gnD3q-0003ka-64@gemulon.postgresql.org>
References: <E1gnD3q-0003ka-64@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