Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0944ec5

Browse files
committed
Don't include genam.h from execnodes.h and relscan.h anymore.
This is the genam.h equivalent of 4c850ec (which removed heapam.h from a lot of other headers). There's still a few header includes of genam.h, but not from central headers anymore. As a few headers are not indirectly included anymore, execnodes.h and relscan.h need a few additional includes. Some of the depended on types were replacable by using the underlying structs, but e.g. for Snapshot in execnodes.h that'd have gotten more invasive than reasonable in this commit. Like the aforementioned commit 4c850ec, this requires adding new genam.h includes to a number of backend files, which likely is also required in a few external projects. Author: Andres Freund Discussion: https://postgr.es/m/[email protected]
1 parent 774a975 commit 0944ec5

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)