Skip to content

Commit 9084399

Browse files
committed
Put back bufmgr.h in bufpage.h -- it is needed by some macros.
Remove #include bufmgr.h from (most?) source files which already include bufpage.h.
1 parent 2739a4e commit 9084399

File tree

10 files changed

+11
-19
lines changed

10 files changed

+11
-19
lines changed

src/backend/access/gin/ginentrypage.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/gin/ginentrypage.c,v 1.13 2008/05/12 00:00:44 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/gin/ginentrypage.c,v 1.14 2008/05/12 16:06:09 alvherre Exp $
1212
*-------------------------------------------------------------------------
1313
*/
1414

1515
#include "postgres.h"
1616
#include "access/gin.h"
1717
#include "access/tuptoaster.h"
18-
#include "storage/bufmgr.h"
1918

2019
/*
2120
* forms tuple for entry tree. On leaf page, Index tuple has

src/backend/access/heap/heapam.c

Lines changed: 1 addition & 2 deletions
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.256 2008/05/12 00:00:44 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.257 2008/05/12 16:06:09 alvherre Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -52,7 +52,6 @@
5252
#include "catalog/namespace.h"
5353
#include "miscadmin.h"
5454
#include "pgstat.h"
55-
#include "storage/bufmgr.h"
5655
#include "storage/lmgr.h"
5756
#include "storage/procarray.h"
5857
#include "storage/smgr.h"

src/backend/access/heap/hio.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/heap/hio.c,v 1.69 2008/05/12 00:00:45 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/heap/hio.c,v 1.70 2008/05/12 16:06:09 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
1515

1616
#include "postgres.h"
1717

1818
#include "access/hio.h"
19-
#include "storage/bufmgr.h"
2019
#include "storage/bufpage.h"
2120
#include "storage/freespace.h"
2221
#include "storage/lmgr.h"

src/backend/access/heap/pruneheap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/heap/pruneheap.c,v 1.10 2008/05/12 00:00:45 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/heap/pruneheap.c,v 1.11 2008/05/12 16:06:09 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -19,7 +19,6 @@
1919
#include "access/transam.h"
2020
#include "miscadmin.h"
2121
#include "pgstat.h"
22-
#include "storage/bufmgr.h"
2322
#include "storage/bufpage.h"
2423
#include "storage/off.h"
2524
#include "utils/inval.h"

src/backend/access/heap/rewriteheap.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
* Portions Copyright (c) 1994-5, Regents of the University of California
9797
*
9898
* IDENTIFICATION
99-
* $PostgreSQL: pgsql/src/backend/access/heap/rewriteheap.c,v 1.11 2008/05/12 00:00:45 alvherre Exp $
99+
* $PostgreSQL: pgsql/src/backend/access/heap/rewriteheap.c,v 1.12 2008/05/12 16:06:09 alvherre Exp $
100100
*
101101
*-------------------------------------------------------------------------
102102
*/
@@ -106,7 +106,6 @@
106106
#include "access/rewriteheap.h"
107107
#include "access/transam.h"
108108
#include "access/tuptoaster.h"
109-
#include "storage/bufmgr.h"
110109
#include "storage/smgr.h"
111110
#include "utils/memutils.h"
112111

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.305 2008/05/12 14:27:47 mha Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.306 2008/05/12 16:06:09 alvherre Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -40,7 +40,6 @@
4040
#include "miscadmin.h"
4141
#include "pgstat.h"
4242
#include "postmaster/bgwriter.h"
43-
#include "storage/bufmgr.h"
4443
#include "storage/bufpage.h"
4544
#include "storage/fd.h"
4645
#include "storage/ipc.h"

src/backend/access/transam/xlogutils.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@
1111
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
1212
* Portions Copyright (c) 1994, Regents of the University of California
1313
*
14-
* $PostgreSQL: pgsql/src/backend/access/transam/xlogutils.c,v 1.52 2008/05/12 00:00:46 alvherre Exp $
14+
* $PostgreSQL: pgsql/src/backend/access/transam/xlogutils.c,v 1.53 2008/05/12 16:06:09 alvherre Exp $
1515
*
1616
*-------------------------------------------------------------------------
1717
*/
1818
#include "postgres.h"
1919

2020
#include "access/xlogutils.h"
21-
#include "storage/bufmgr.h"
2221
#include "storage/bufpage.h"
2322
#include "storage/smgr.h"
2423
#include "utils/hsearch.h"

src/backend/commands/analyze.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.120 2008/05/12 00:00:47 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/commands/analyze.c,v 1.121 2008/05/12 16:06:09 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -33,7 +33,6 @@
3333
#include "parser/parse_relation.h"
3434
#include "pgstat.h"
3535
#include "postmaster/autovacuum.h"
36-
#include "storage/bufmgr.h"
3736
#include "storage/proc.h"
3837
#include "storage/procarray.h"
3938
#include "utils/acl.h"

src/backend/storage/buffer/bufmgr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.229 2008/05/12 00:00:50 alvherre Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.230 2008/05/12 16:06:09 alvherre Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -36,7 +36,6 @@
3636
#include "miscadmin.h"
3737
#include "postmaster/bgwriter.h"
3838
#include "storage/buf_internals.h"
39-
#include "storage/bufmgr.h"
4039
#include "storage/bufpage.h"
4140
#include "storage/ipc.h"
4241
#include "storage/proc.h"

src/include/storage/bufpage.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/storage/bufpage.h,v 1.78 2008/05/12 00:00:53 alvherre Exp $
10+
* $PostgreSQL: pgsql/src/include/storage/bufpage.h,v 1.79 2008/05/12 16:06:10 alvherre Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
#ifndef BUFPAGE_H
1515
#define BUFPAGE_H
1616

1717
#include "access/xlog.h"
18+
#include "storage/bufmgr.h"
1819
#include "storage/item.h"
1920
#include "storage/off.h"
2021

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy