Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd43b085

Browse files
committed
Separate snapshot management code from tuple visibility code, create a
snapmgmt.c file for the former. The header files have also been reorganizedin three parts: the most basic snapshot definitions are now in a new filesnapshot.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 atransaction; there is no functionality change.Per my proposal to pgsql-patches on 20080318191940.GB27458@alvh.no-ip.org andsubsequent discussion.
1 parent2d7705e commitd43b085

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+345
-258
lines changed

‎src/backend/access/heap/heapam.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.251 2008/03/08 21:57:59 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.252 2008/03/26 16:20:46 alvherre Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -56,6 +56,7 @@
5656
#include"utils/inval.h"
5757
#include"utils/lsyscache.h"
5858
#include"utils/relcache.h"
59+
#include"utils/snapmgmt.h"
5960
#include"utils/syscache.h"
6061

6162

‎src/backend/access/index/indexam.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/index/indexam.c,v 1.101 2008/01/01 19:45:46momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/index/indexam.c,v 1.102 2008/03/26 16:20:46alvherre Exp $
1212
*
1313
* INTERFACE ROUTINES
1414
*index_open- open an index relation by relation OID
@@ -67,6 +67,7 @@
6767
#include"access/transam.h"
6868
#include"pgstat.h"
6969
#include"utils/relcache.h"
70+
#include"utils/snapmgmt.h"
7071

7172

7273
/* ----------------------------------------------------------------

‎src/backend/access/nbtree/nbtpage.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtpage.c,v 1.106 2008/01/01 19:45:46momjian Exp $
12+
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtpage.c,v 1.107 2008/03/26 16:20:46alvherre Exp $
1313
*
1414
*NOTES
1515
* Postgres btree pages look like ordinary relation pages.The opaque
@@ -28,6 +28,7 @@
2828
#include"storage/freespace.h"
2929
#include"storage/lmgr.h"
3030
#include"utils/inval.h"
31+
#include"utils/snapmgmt.h"
3132

3233

3334
/*

‎src/backend/access/transam/subtrans.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
2323
* Portions Copyright (c) 1994, Regents of the University of California
2424
*
25-
* $PostgreSQL: pgsql/src/backend/access/transam/subtrans.c,v 1.20 2008/01/01 19:45:48 momjian Exp $
25+
* $PostgreSQL: pgsql/src/backend/access/transam/subtrans.c,v 1.21 2008/03/26 16:20:46 alvherre Exp $
2626
*
2727
*-------------------------------------------------------------------------
2828
*/
@@ -31,7 +31,7 @@
3131
#include"access/slru.h"
3232
#include"access/subtrans.h"
3333
#include"access/transam.h"
34-
#include"utils/tqual.h"
34+
#include"utils/snapmgmt.h"
3535

3636

3737
/*

‎src/backend/access/transam/transam.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/transam/transam.c,v 1.74 2008/03/11 20:20:35 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/transam/transam.c,v 1.75 2008/03/26 16:20:46 alvherre Exp $
1212
*
1313
* NOTES
1414
* This file contains the high level access-method interface to the
@@ -22,7 +22,7 @@
2222
#include"access/clog.h"
2323
#include"access/subtrans.h"
2424
#include"access/transam.h"
25-
#include"utils/tqual.h"
25+
#include"utils/snapmgmt.h"
2626

2727

2828
/*

‎src/backend/access/transam/xact.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.260 2008/03/17 19:44:41 petere Exp $
13+
* $PostgreSQL: pgsql/src/backend/access/transam/xact.c,v 1.261 2008/03/26 16:20:46 alvherre Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -45,6 +45,7 @@
4545
#include"utils/inval.h"
4646
#include"utils/memutils.h"
4747
#include"utils/relcache.h"
48+
#include"utils/snapmgmt.h"
4849
#include"utils/xml.h"
4950
#include"pg_trace.h"
5051

‎src/backend/catalog/catalog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/catalog/catalog.c,v 1.73 2008/02/20 17:44:09 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/catalog/catalog.c,v 1.74 2008/03/26 16:20:46 alvherre Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -38,6 +38,7 @@
3838
#include"storage/fd.h"
3939
#include"utils/fmgroids.h"
4040
#include"utils/relcache.h"
41+
#include"utils/tqual.h"
4142

4243

4344
#defineOIDCHARS10/* max chars printed by %u */

‎src/backend/catalog/heap.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.328 2008/03/25 22:42:42 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.329 2008/03/26 16:20:46 alvherre Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -60,6 +60,7 @@
6060
#include"utils/lsyscache.h"
6161
#include"utils/relcache.h"
6262
#include"utils/syscache.h"
63+
#include"utils/snapmgmt.h"
6364

6465

6566
staticvoidAddNewRelationTuple(Relationpg_class_desc,

‎src/backend/catalog/index.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.293 2008/03/25 22:42:42 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.294 2008/03/26 16:20:46 alvherre Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -55,6 +55,7 @@
5555
#include"utils/relcache.h"
5656
#include"utils/syscache.h"
5757
#include"utils/tuplesort.h"
58+
#include"utils/snapmgmt.h"
5859

5960

6061
/* state info for validate_index bulkdelete callback */

‎src/backend/commands/cluster.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.169 2008/01/30 19:46:48 tgl Exp $
14+
* $PostgreSQL: pgsql/src/backend/commands/cluster.c,v 1.170 2008/03/26 16:20:46 alvherre Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
@@ -41,6 +41,7 @@
4141
#include"utils/lsyscache.h"
4242
#include"utils/memutils.h"
4343
#include"utils/relcache.h"
44+
#include"utils/snapmgmt.h"
4445
#include"utils/syscache.h"
4546

4647

‎src/backend/commands/copy.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.296 2008/03/08 01:16:26 adunstan Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/copy.c,v 1.297 2008/03/2616:20:46 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -40,6 +40,7 @@
4040
#include"utils/builtins.h"
4141
#include"utils/lsyscache.h"
4242
#include"utils/memutils.h"
43+
#include"utils/snapmgmt.h"
4344

4445

4546
#defineISOCTAL(c) (((c) >= '0') && ((c) <= '7'))

‎src/backend/commands/explain.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994-5, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.169 2008/01/01 19:45:49 momjian Exp $
10+
* $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.170 2008/03/26 16:20:46 alvherre Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -31,6 +31,7 @@
3131
#include"utils/guc.h"
3232
#include"utils/lsyscache.h"
3333
#include"utils/tuplesort.h"
34+
#include"utils/snapmgmt.h"
3435

3536

3637
/* Hook for plugins to get control in ExplainOneQuery() */

‎src/backend/commands/indexcmds.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.171 2008/02/07 17:09:51 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.172 2008/03/26 16:20:46 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -47,6 +47,7 @@
4747
#include"utils/lsyscache.h"
4848
#include"utils/memutils.h"
4949
#include"utils/relcache.h"
50+
#include"utils/snapmgmt.h"
5051
#include"utils/syscache.h"
5152

5253

‎src/backend/commands/portalcmds.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
*
1616
* IDENTIFICATION
17-
* $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.70 2008/03/2020:05:56 alvherre Exp $
17+
* $PostgreSQL: pgsql/src/backend/commands/portalcmds.c,v 1.71 2008/03/26 16:20:46 alvherre Exp $
1818
*
1919
*-------------------------------------------------------------------------
2020
*/
@@ -28,6 +28,7 @@
2828
#include"executor/executor.h"
2929
#include"tcop/pquery.h"
3030
#include"utils/memutils.h"
31+
#include"utils/snapmgmt.h"
3132

3233

3334
/*

‎src/backend/commands/prepare.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Copyright (c) 2002-2008, PostgreSQL Global Development Group
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.82 2008/03/25 22:42:42 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.83 2008/03/26 16:20:46 alvherre Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -32,6 +32,7 @@
3232
#include"tcop/utility.h"
3333
#include"utils/builtins.h"
3434
#include"utils/memutils.h"
35+
#include"utils/snapmgmt.h"
3536

3637

3738
/*

‎src/backend/commands/tablecmds.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.244 2008/03/25 22:42:42 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.245 2008/03/26 16:20:47 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -65,6 +65,7 @@
6565
#include"utils/lsyscache.h"
6666
#include"utils/memutils.h"
6767
#include"utils/relcache.h"
68+
#include"utils/snapmgmt.h"
6869
#include"utils/syscache.h"
6970

7071

‎src/backend/commands/trigger.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.227 2008/01/02 23:34:42 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/commands/trigger.c,v 1.228 2008/03/26 16:20:47 alvherre Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -38,6 +38,7 @@
3838
#include"utils/inval.h"
3939
#include"utils/lsyscache.h"
4040
#include"utils/memutils.h"
41+
#include"utils/snapmgmt.h"
4142
#include"utils/syscache.h"
4243

4344

‎src/backend/commands/vacuum.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
*
1515
* IDENTIFICATION
16-
* $PostgreSQL: pgsql/src/backend/commands/vacuum.c,v 1.368 2008/03/19 14:18:21 alvherre Exp $
16+
* $PostgreSQL: pgsql/src/backend/commands/vacuum.c,v 1.369 2008/03/26 16:20:47 alvherre Exp $
1717
*
1818
*-------------------------------------------------------------------------
1919
*/
@@ -48,6 +48,7 @@
4848
#include"utils/memutils.h"
4949
#include"utils/pg_rusage.h"
5050
#include"utils/relcache.h"
51+
#include"utils/snapmgmt.h"
5152
#include"utils/syscache.h"
5253
#include"pgstat.h"
5354

‎src/backend/commands/variable.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/commands/variable.c,v 1.125 2008/01/03 21:23:15 tgl Exp $
12+
* $PostgreSQL: pgsql/src/backend/commands/variable.c,v 1.126 2008/03/26 16:20:47 alvherre Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -25,7 +25,7 @@
2525
#include"utils/acl.h"
2626
#include"utils/builtins.h"
2727
#include"utils/syscache.h"
28-
#include"utils/tqual.h"
28+
#include"utils/snapmgmt.h"
2929
#include"mb/pg_wchar.h"
3030

3131
/*

‎src/backend/executor/functions.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.122 2008/03/25 22:42:43 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/functions.c,v 1.123 2008/03/26 16:20:47 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -28,6 +28,7 @@
2828
#include"utils/builtins.h"
2929
#include"utils/datum.h"
3030
#include"utils/lsyscache.h"
31+
#include"utils/snapmgmt.h"
3132
#include"utils/syscache.h"
3233
#include"utils/typcache.h"
3334

‎src/backend/executor/nodeBitmapHeapscan.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $PostgreSQL: pgsql/src/backend/executor/nodeBitmapHeapscan.c,v 1.22 2008/01/01 19:45:49 momjian Exp $
24+
* $PostgreSQL: pgsql/src/backend/executor/nodeBitmapHeapscan.c,v 1.23 2008/03/26 16:20:47 alvherre Exp $
2525
*
2626
*-------------------------------------------------------------------------
2727
*/
@@ -40,6 +40,7 @@
4040
#include"executor/nodeBitmapHeapscan.h"
4141
#include"pgstat.h"
4242
#include"utils/memutils.h"
43+
#include"utils/snapmgmt.h"
4344

4445

4546
staticTupleTableSlot*BitmapHeapNext(BitmapHeapScanState*node);

‎src/backend/executor/spi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.189 2008/03/2020:05:56 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/executor/spi.c,v 1.190 2008/03/26 16:20:47 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -20,6 +20,7 @@
2020
#include"executor/spi_priv.h"
2121
#include"utils/lsyscache.h"
2222
#include"utils/memutils.h"
23+
#include"utils/snapmgmt.h"
2324
#include"utils/typcache.h"
2425

2526

‎src/backend/optimizer/util/plancat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/optimizer/util/plancat.c,v 1.141 2008/03/1520:46:31 tgl Exp $
12+
* $PostgreSQL: pgsql/src/backend/optimizer/util/plancat.c,v 1.142 2008/03/26 16:20:47 alvherre Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -33,6 +33,7 @@
3333
#include"utils/fmgroids.h"
3434
#include"utils/lsyscache.h"
3535
#include"utils/relcache.h"
36+
#include"utils/snapmgmt.h"
3637
#include"utils/syscache.h"
3738
#include"catalog/catalog.h"
3839
#include"miscadmin.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp