File: 10_avoid_namespace_hashtab_impl_gen.patch

package info (click to toggle)
libpg-query 17-6.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 33,440 kB
  • sloc: ansic: 175,872; sql: 79,564; ruby: 1,605; makefile: 281; cpp: 221
file content (23 lines) | stat: -rw-r--r-- 865 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
commit f664bdae4be383875bf3bfb0b6919d527942a146
Author: msepga <msepga2@gmail.com>
Date:   Mon Sep 23 12:52:44 2024 -0400

    Avoid generating hash table functions for namespace catalog
    
    If the helper `spcachekey_hash` and `spcachekey_equal` static functions
    are not included in the source, this fails to build. We instead just
    avoid generating the hashtable function implementations entirely.

diff --git a/src/backend/catalog/namespace.c b/src/backend/catalog/namespace.c
index 43b707699d..41bed2c9fd 100644
--- a/src/backend/catalog/namespace.c
+++ b/src/backend/catalog/namespace.c
@@ -285,7 +285,7 @@ spcachekey_equal(SearchPathCacheKey a, SearchPathCacheKey b)
 #define SH_EQUAL(tb, a, b)		spcachekey_equal(a, b)
 #define SH_SCOPE		static inline
 #define SH_DECLARE
-#define SH_DEFINE
+// #define SH_DEFINE
 #include "lib/simplehash.h"
 
 /*