Skip to content

Commit 0f864a6

Browse files
committed
Reduce some rel.h inclusions, and add pg_list.h to pg_proc_fn.h.
1 parent 192dd84 commit 0f864a6

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

src/include/access/visibilitymap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
* Portions Copyright (c) 2007, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/include/access/visibilitymap.h,v 1.1 2008/12/03 13:05:22 heikki Exp $
10+
* $PostgreSQL: pgsql/src/include/access/visibilitymap.h,v 1.2 2008/12/12 22:56:00 alvherre Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
#ifndef VISIBILITYMAP_H
1515
#define VISIBILITYMAP_H
1616

17-
#include "utils/rel.h"
17+
#include "utils/relcache.h"
1818
#include "storage/buf.h"
1919
#include "storage/itemptr.h"
2020
#include "access/xlogdefs.h"

src/include/catalog/pg_proc_fn.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +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/catalog/pg_proc_fn.h,v 1.2 2008/12/04 17:51:27 petere Exp $
10+
* $PostgreSQL: pgsql/src/include/catalog/pg_proc_fn.h,v 1.3 2008/12/12 22:56:00 alvherre Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
#ifndef PG_PROC_FN_H
1515
#define PG_PROC_FN_H
1616

17+
#include "nodes/pg_list.h"
18+
1719
extern Oid ProcedureCreate(const char *procedureName,
1820
Oid procNamespace,
1921
bool replace,

src/include/catalog/storage.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
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/catalog/storage.h,v 1.1 2008/11/19 10:34:52 heikki Exp $
10+
* $PostgreSQL: pgsql/src/include/catalog/storage.h,v 1.2 2008/12/12 22:56:00 alvherre Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
#ifndef STORAGE_H
1515
#define STORAGE_H
1616

17+
#include "access/xlog.h"
18+
#include "lib/stringinfo.h"
1719
#include "storage/block.h"
1820
#include "storage/relfilenode.h"
19-
#include "utils/rel.h"
21+
#include "utils/relcache.h"
2022

2123
extern void RelationCreateStorage(RelFileNode rnode, bool istemp);
2224
extern void RelationDropStorage(Relation rel);

src/include/storage/freespace.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@
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/freespace.h,v 1.31 2008/11/19 10:34:52 heikki Exp $
10+
* $PostgreSQL: pgsql/src/include/storage/freespace.h,v 1.32 2008/12/12 22:56:00 alvherre Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
#ifndef FREESPACE_H_
1515
#define FREESPACE_H_
1616

17-
#include "utils/rel.h"
17+
#include "storage/block.h"
1818
#include "storage/bufpage.h"
19-
#include "access/xlog.h"
19+
#include "storage/relfilenode.h"
20+
#include "utils/relcache.h"
2021

2122
/* prototypes for public functions in freespace.c */
2223
extern Size GetRecordedFreeSpace(Relation rel, BlockNumber heapBlk);
@@ -33,4 +34,4 @@ extern void XLogRecordPageWithFreeSpace(RelFileNode rnode, BlockNumber heapBlk,
3334
extern void FreeSpaceMapTruncateRel(Relation rel, BlockNumber nblocks);
3435
extern void FreeSpaceMapVacuum(Relation rel);
3536

36-
#endif /* FREESPACE_H */
37+
#endif /* FREESPACE_H_ */

src/include/storage/indexfsm.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@
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/indexfsm.h,v 1.3 2008/11/19 10:34:52 heikki Exp $
10+
* $PostgreSQL: pgsql/src/include/storage/indexfsm.h,v 1.4 2008/12/12 22:56:00 alvherre Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
1414
#ifndef INDEXFSM_H_
1515
#define INDEXFSM_H_
1616

17-
#include "utils/rel.h"
17+
#include "storage/block.h"
18+
#include "utils/relcache.h"
1819

1920
extern BlockNumber GetFreeIndexPage(Relation rel);
2021
extern void RecordFreeIndexPage(Relation rel, BlockNumber page);
2122
extern void RecordUsedIndexPage(Relation rel, BlockNumber page);
2223

2324
extern void IndexFreeSpaceMapVacuum(Relation rel);
2425

25-
#endif /* INDEXFSM_H */
26+
#endif /* INDEXFSM_H_ */

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