Skip to content

Commit 445a38a

Browse files
committed
Have heapam.h include lockdefs.h rather than lock.h.
lockdefs.h was only split from lock.h relatively recently, and represents a minimal subset of the old lock.h. heapam.h only needs that smaller subset, so adjust it to include only that. This requires some corresponding adjustments elsewhere. Peter Geoghegan
1 parent 0dba54f commit 445a38a

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

src/backend/access/heap/syncscan.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848

4949
#include "access/heapam.h"
5050
#include "miscadmin.h"
51+
#include "storage/lwlock.h"
52+
#include "storage/shmem.h"
5153
#include "utils/rel.h"
5254

5355

src/backend/access/transam/commit_ts.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "funcapi.h"
3333
#include "miscadmin.h"
3434
#include "pg_trace.h"
35+
#include "storage/shmem.h"
3536
#include "utils/builtins.h"
3637
#include "utils/snapmgr.h"
3738
#include "utils/timestamp.h"

src/include/access/heapam.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "nodes/lockoptions.h"
2020
#include "nodes/primnodes.h"
2121
#include "storage/bufpage.h"
22-
#include "storage/lock.h"
22+
#include "storage/lockdefs.h"
2323
#include "utils/relcache.h"
2424
#include "utils/snapshot.h"
2525

src/include/access/relscan.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "access/htup_details.h"
2020
#include "access/itup.h"
2121
#include "access/tupdesc.h"
22+
#include "storage/spin.h"
2223

2324
/*
2425
* Shared state for parallel heap scan.

src/include/nodes/execnodes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include "lib/pairingheap.h"
2121
#include "nodes/params.h"
2222
#include "nodes/plannodes.h"
23+
#include "utils/hsearch.h"
2324
#include "utils/reltrigger.h"
2425
#include "utils/sortsupport.h"
2526
#include "utils/tuplestore.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