]> granicus.if.org Git - postgresql/commit
Move generic snapshot related code from tqual.h to snapmgr.h.
authorAndres Freund <andres@anarazel.de>
Tue, 22 Jan 2019 01:03:15 +0000 (17:03 -0800)
committerAndres Freund <andres@anarazel.de>
Tue, 22 Jan 2019 01:06:41 +0000 (17:06 -0800)
commitb7eda3e0e33402a7727253e6f307ca96b92eb23d
tree0878213217c64dcde36233ef0609e0c9d2d3c945
parent63746189b23815415cacc715fdc4f6b991f1a5e7
Move generic snapshot related code from tqual.h to snapmgr.h.

The code in tqual.c is largely heap specific. Due to the upcoming
pluggable storage work, it therefore makes sense to move it into
access/heap/ (as the file's header notes, the tqual name isn't very
good).

But the various statically allocated snapshot and snapshot
initialization functions are now (see previous commit) generic and do
not depend on functions declared in tqual.h anymore. Therefore move.
Also move XidInMVCCSnapshot as that's useful for future AMs, and
already used outside of tqual.c.

Author: Andres Freund
Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
17 files changed:
contrib/amcheck/verify_nbtree.c
contrib/sepgsql/database.c
contrib/sepgsql/proc.c
contrib/sepgsql/relation.c
contrib/sepgsql/schema.c
src/backend/access/nbtree/nbtsort.c
src/backend/catalog/catalog.c
src/backend/commands/async.c
src/backend/commands/constraint.c
src/backend/executor/execIndexing.c
src/backend/replication/logical/origin.c
src/backend/replication/logical/snapbuild.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/time/snapmgr.c
src/backend/utils/time/tqual.c
src/include/utils/snapmgr.h
src/include/utils/tqual.h