v1-0001-Fix-incorrect-iteration-type-in-extension_file_ex.patch
application/octet-stream
Filename: v1-0001-Fix-incorrect-iteration-type-in-extension_file_ex.patch
Type: application/octet-stream
Part: 0
Message:
Fix a bug in extension_file_exists()
Patch
Format: format-patch
Series: patch v1-0001
Subject: Fix incorrect iteration type in extension_file_exists()
| File | + | − |
|---|---|---|
| src/backend/commands/extension.c | 3 | 3 |
From 4a69b519a1b077fc617a2f968bb1dbb2ce2c6806 Mon Sep 17 00:00:00 2001
From: "Chao Li (Evan)" <lic@highgo.com>
Date: Mon, 9 Feb 2026 17:05:57 +0800
Subject: [PATCH v1] Fix incorrect iteration type in extension_file_exists()
Author: Chao Li <lic@highgo.com>
Reviewed-by:
Discussion: https://postgr.es/m/
---
src/backend/commands/extension.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/backend/commands/extension.c b/src/backend/commands/extension.c
index 596105ee078..f82a7f104c7 100644
--- a/src/backend/commands/extension.c
+++ b/src/backend/commands/extension.c
@@ -2557,9 +2557,9 @@ extension_file_exists(const char *extensionName)
locations = get_extension_control_directories();
- foreach_ptr(char, location, locations)
+ foreach_ptr(ExtensionLocation, location, locations)
{
- dir = AllocateDir(location);
+ dir = AllocateDir(location->loc);
/*
* If the control directory doesn't exist, we want to silently return
@@ -2571,7 +2571,7 @@ extension_file_exists(const char *extensionName)
}
else
{
- while ((de = ReadDir(dir, location)) != NULL)
+ while ((de = ReadDir(dir, location->loc)) != NULL)
{
char *extname;
--
2.50.1 (Apple Git-155)