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

Commit0f864a6

Browse files
committed
Reduce some rel.h inclusions, and add pg_list.h to pg_proc_fn.h.
1 parent192dd84 commit0f864a6

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
#ifndefVISIBILITYMAP_H
1515
#defineVISIBILITYMAP_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
#ifndefPG_PROC_FN_H
1515
#definePG_PROC_FN_H
1616

17+
#include"nodes/pg_list.h"
18+
1719
externOidProcedureCreate(constchar*procedureName,
1820
OidprocNamespace,
1921
boolreplace,

‎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
#ifndefSTORAGE_H
1515
#defineSTORAGE_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
externvoidRelationCreateStorage(RelFileNodernode,boolistemp);
2224
externvoidRelationDropStorage(Relationrel);

‎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
#ifndefFREESPACE_H_
1515
#defineFREESPACE_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
externSizeGetRecordedFreeSpace(Relationrel,BlockNumberheapBlk);
@@ -33,4 +34,4 @@ extern void XLogRecordPageWithFreeSpace(RelFileNode rnode, BlockNumber heapBlk,
3334
externvoidFreeSpaceMapTruncateRel(Relationrel,BlockNumbernblocks);
3435
externvoidFreeSpaceMapVacuum(Relationrel);
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
#ifndefINDEXFSM_H_
1515
#defineINDEXFSM_H_
1616

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

1920
externBlockNumberGetFreeIndexPage(Relationrel);
2021
externvoidRecordFreeIndexPage(Relationrel,BlockNumberpage);
2122
externvoidRecordUsedIndexPage(Relationrel,BlockNumberpage);
2223

2324
externvoidIndexFreeSpaceMapVacuum(Relationrel);
2425

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp