diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-03-26 16:20:48 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2008-03-26 16:20:48 +0000 |
commit | d43b085d578148f8dec2fea774912103e2f3044f (patch) | |
tree | 1be5ecca422dfe036fe9624355b4c952e7a8bc61 /src/backend/tcop | |
parent | 2d7705e85e22c8798fe70234aed8161ed84fdaa8 (diff) | |
download | postgresql-d43b085d578148f8dec2fea774912103e2f3044f.tar.gz |
Separate snapshot management code from tuple visibility code, create a
snapmgmt.c file for the former. The header files have also been reorganized
in three parts: the most basic snapshot definitions are now in a new file
snapshot.h, and the also new snapmgmt.h keeps the definitions for snapmgmt.c.
tqual.h has been reduced to the bare minimum.
This patch is just a first step towards managing live snapshots within a
transaction; there is no functionality change.
Per my proposal to pgsql-patches on 20080318191940.GB27458@alvh.no-ip.org and
subsequent discussion.
Diffstat (limited to 'src/backend/tcop')
-rw-r--r-- | src/backend/tcop/fastpath.c | 3 | ||||
-rw-r--r-- | src/backend/tcop/postgres.c | 3 | ||||
-rw-r--r-- | src/backend/tcop/pquery.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/tcop/fastpath.c b/src/backend/tcop/fastpath.c index 651cf1e4f2..d459aa5a48 100644 --- a/src/backend/tcop/fastpath.c +++ b/src/backend/tcop/fastpath.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/fastpath.c,v 1.97 2008/01/01 19:45:52 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/fastpath.c,v 1.98 2008/03/26 16:20:47 alvherre Exp $ * * NOTES * This cruft is the server side of PQfn. @@ -30,6 +30,7 @@ #include "tcop/tcopprot.h" #include "utils/acl.h" #include "utils/lsyscache.h" +#include "utils/snapmgmt.h" #include "utils/syscache.h" diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 19e7c0b070..c3eab72bf8 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.545 2008/03/12 23:58:27 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.546 2008/03/26 16:20:47 alvherre Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -66,6 +66,7 @@ #include "utils/lsyscache.h" #include "utils/memutils.h" #include "utils/ps_status.h" +#include "utils/snapmgmt.h" #include "mb/pg_wchar.h" #include "pgstat.h" diff --git a/src/backend/tcop/pquery.c b/src/backend/tcop/pquery.c index 0e980385b2..f9dc2a72d0 100644 --- a/src/backend/tcop/pquery.c +++ b/src/backend/tcop/pquery.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.120 2008/01/01 19:45:52 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/pquery.c,v 1.121 2008/03/26 16:20:47 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -23,6 +23,7 @@ #include "tcop/tcopprot.h" #include "tcop/utility.h" #include "utils/memutils.h" +#include "utils/snapmgmt.h" /* |