aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2025-04-27 13:23:19 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2025-04-27 13:23:19 -0400
commit94b84a60729e15ee071739c3aec7fdd781123aab (patch)
treedd7cfe54f977154b1ea5ab121d724b0bade11e23 /src/backend
parent2311f193ea7db23f68f5471ae2c35940fc0d4794 (diff)
downloadpostgresql-94b84a60729e15ee071739c3aec7fdd781123aab.tar.gz
postgresql-94b84a60729e15ee071739c3aec7fdd781123aab.zip
Don't use double-quotes in #include's of system headers, redux.
This cleans up some loose ends left by commit e8ca9ed1d. I hadn't looked closely enough at these places before, but now I have. The use of double-quoted #includes for Perl headers in plperl_system.h seems to be simply a mistake introduced in 6c944bf3c and faithfully copied forward since then. (I had thought possibly it was required by some weird Windows build setup, but there's no evidence of that in our history.) The occurrences in SectionMemoryManager.h and SectionMemoryManager.cpp evidently stem from those files' origin as LLVM code. It's understandable that LLVM would treat their own files as needing double-quoted #includes; but they're still system headers to us. I also applied the same check to *.c files, and found a few other random incorrect usages in both directions. Our ECPG headers and test files routinely use angle brackets to refer to ECPG headers. I left those usages alone, since it seems reasonable for an ECPG user to regard those headers as system headers.
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/jit/llvm/SectionMemoryManager.cpp4
-rw-r--r--src/backend/storage/buffer/bufmgr.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/jit/llvm/SectionMemoryManager.cpp b/src/backend/jit/llvm/SectionMemoryManager.cpp
index c4fbf15a961..2171db5f382 100644
--- a/src/backend/jit/llvm/SectionMemoryManager.cpp
+++ b/src/backend/jit/llvm/SectionMemoryManager.cpp
@@ -40,8 +40,8 @@
#ifdef USE_LLVM_BACKPORT_SECTION_MEMORY_MANAGER
#include "jit/SectionMemoryManager.h"
-#include "llvm/Support/MathExtras.h"
-#include "llvm/Support/Process.h"
+#include <llvm/Support/MathExtras.h>
+#include <llvm/Support/Process.h>
namespace llvm {
namespace backport {
diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c
index fe0ceeadc13..0b317d2d809 100644
--- a/src/backend/storage/buffer/bufmgr.c
+++ b/src/backend/storage/buffer/bufmgr.c
@@ -3333,7 +3333,7 @@ UnpinBufferNoOwner(BufferDesc *buf)
#define ST_COMPARE(a, b) ckpt_buforder_comparator(a, b)
#define ST_SCOPE static
#define ST_DEFINE
-#include <lib/sort_template.h>
+#include "lib/sort_template.h"
/*
* BufferSync -- Write out all dirty buffers in the pool.
@@ -6450,7 +6450,7 @@ ScheduleBufferTagForWriteback(WritebackContext *wb_context, IOContext io_context
#define ST_COMPARE(a, b) buffertag_comparator(&a->tag, &b->tag)
#define ST_SCOPE static
#define ST_DEFINE
-#include <lib/sort_template.h>
+#include "lib/sort_template.h"
/*
* Issue all pending writeback requests, previously scheduled with