]> granicus.if.org Git - postgresql/commit
Simplify restriction handling of two-phase commit for temporary objects
authorMichael Paquier <michael@paquier.xyz>
Sat, 26 Jan 2019 01:45:23 +0000 (10:45 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sat, 26 Jan 2019 01:45:23 +0000 (10:45 +0900)
commitc9b75c5838feeae73dbae00bce9d8f650b80ba38
tree5e3b8ba1a207d1a602b2485b453890a8174e4dad
parentdf4c9044406f1e907268930dd12ba6c3642d21dd
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
src/backend/access/common/relation.c
src/backend/access/transam/xact.c
src/backend/commands/lockcmds.c
src/backend/commands/tablecmds.c
src/include/access/xact.h
src/test/modules/test_extensions/expected/test_extensions.out
src/test/regress/expected/temp.out