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

Commita12b0f3

Browse files
Include necessary header files in radixtree.h.
When #include'ing radixtree.h with RT_SHMEM, it could happen to raisecompiler errors due to missing some declarations of types andfunctions.This commit also removes the inclusion of postgres.h since it'sagainst our usual convention.Backpatch to v17, where radixtree.h was introduced.Reviewed-by: Heikki Linnakangas, Álvaro HerreraDiscussion:https://postgr.es/m/CAD21AoCU9YH%2Bb9Rr8YRw7UjmB%3D1zh8GKQkWNiuN9mVhMvkyrRg%40mail.gmail.comBackpatch-through: 17
1 parentf36fe5d commita12b0f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/include/lib/radixtree.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,15 @@
151151
*-------------------------------------------------------------------------
152152
*/
153153

154-
#include"postgres.h"
155-
156154
#include"nodes/bitmapset.h"
157155
#include"port/pg_bitutils.h"
158156
#include"port/simd.h"
159157
#include"utils/dsa.h"
160158
#include"utils/memutils.h"
159+
#ifdefRT_SHMEM
160+
#include"miscadmin.h"
161+
#include"storage/lwlock.h"
162+
#endif
161163

162164
/* helpers */
163165
#defineRT_MAKE_PREFIX(a) CppConcat(a,_)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp