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

Commit0944ec5

Browse files
committed
Don't include genam.h from execnodes.h and relscan.h anymore.
This is the genam.h equivalent of4c850ec (which removedheapam.h from a lot of other headers). There's still a few headerincludes of genam.h, but not from central headers anymore.As a few headers are not indirectly included anymore, execnodes.h andrelscan.h need a few additional includes. Some of the depended ontypes were replacable by using the underlying structs, but e.g. forSnapshot in execnodes.h that'd have gotten more invasive thanreasonable in this commit.Like the aforementioned commit4c850ec, this requires adding newgenam.h includes to a number of backend files, which likely is alsorequired in a few external projects.Author: Andres FreundDiscussion:https://postgr.es/m/20190114000701.y4ttcb74jpskkcfb@alap3.anarazel.de
1 parent774a975 commit0944ec5

File tree

22 files changed

+45
-23
lines changed

22 files changed

+45
-23
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include"postgres.h"
4040

4141
#include"access/bufmask.h"
42+
#include"access/genam.h"
4243
#include"access/heapam.h"
4344
#include"access/heapam_xlog.h"
4445
#include"access/hio.h"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include"postgres.h"
2121

22+
#include"access/genam.h"
2223
#include"access/heapam.h"
2324
#include"access/relscan.h"
2425
#include"access/transam.h"

‎src/backend/bootstrap/bootstrap.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include<unistd.h>
1818
#include<signal.h>
1919

20+
#include"access/genam.h"
2021
#include"access/heapam.h"
2122
#include"access/htup_details.h"
2223
#include"access/xact.h"

‎src/backend/catalog/dependency.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
*/
1515
#include"postgres.h"
1616

17+
#include"access/genam.h"
1718
#include"access/htup_details.h"
1819
#include"access/heapam.h"
1920
#include"access/xact.h"

‎src/backend/catalog/heap.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030
#include"postgres.h"
3131

32+
#include"access/genam.h"
3233
#include"access/heapam.h"
3334
#include"access/htup_details.h"
3435
#include"access/multixact.h"

‎src/backend/catalog/indexing.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
#include"postgres.h"
1717

18+
#include"access/genam.h"
1819
#include"access/heapam.h"
1920
#include"access/htup_details.h"
2021
#include"catalog/index.h"

‎src/backend/catalog/objectaddress.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include"postgres.h"
1717

18+
#include"access/genam.h"
1819
#include"access/heapam.h"
1920
#include"access/htup_details.h"
2021
#include"access/sysattr.h"

‎src/backend/commands/analyze.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include<math.h>
1818

19+
#include"access/genam.h"
1920
#include"access/heapam.h"
2021
#include"access/multixact.h"
2122
#include"access/sysattr.h"

‎src/backend/commands/constraint.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*/
1414
#include"postgres.h"
1515

16+
#include"access/genam.h"
1617
#include"access/heapam.h"
1718
#include"catalog/index.h"
1819
#include"commands/trigger.h"

‎src/backend/commands/extension.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include<sys/stat.h>
3030
#include<unistd.h>
3131

32+
#include"access/genam.h"
3233
#include"access/heapam.h"
3334
#include"access/htup_details.h"
3435
#include"access/sysattr.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp