Simplify restriction handling of two-phase commit for temporary objects
Michael Paquier <michael@paquier.xyz>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/access/common/relation.c | modified | +2 −2 |
| src/backend/access/transam/xact.c | modified | +6 −13 |
| src/backend/commands/lockcmds.c | modified | +1 −1 |
| src/backend/commands/tablecmds.c | modified | +1 −1 |
| src/include/access/xact.h | modified | +3 −9 |
| src/test/modules/test_extensions/expected/test_extensions.out | modified | +1 −1 |
| src/test/regress/expected/temp.out | modified | +11 −11 |
Discussion
- Simplify set of flags used by MyXactFlags 7 messages · 2019-01-18 → 2019-01-26