Simplify restriction handling of two-phase commit for temporary objects

Michael Paquier <michael@paquier.xyz>

Commit: c9b75c5838feeae73dbae00bce9d8f650b80ba38
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-01-26T01:45:23Z
Releases: 12.0
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

Files

Discussion