src/server/plugins/postgresql/config.c

changeset 659
07b815faa6ac
parent 579
e10457d74fe1
--- a/src/server/plugins/postgresql/config.c	Wed Dec 17 22:15:48 2025 +0100
+++ b/src/server/plugins/postgresql/config.c	Tue Dec 30 21:44:49 2025 +0100
@@ -344,7 +344,7 @@
     }  
     
     // check if the table was already specified
-    if(cxMapGet(ext->table_lookup, cx_hash_key_str(table))) {
+    if(cxMapGet(ext->table_lookup, table)) {
         log_ereport(LOG_MISCONFIG, "pg: config %s: extension table %s not unique", file_path, table);
         return 1;
     }
@@ -360,7 +360,7 @@
     int tableindex = (int)cxListSize(ext->tables);
     cxListAdd(ext->tables, &exttable);
     
-    if(cxMapPut(ext->table_lookup, cx_hash_key_str(table), (void*)table)) {
+    if(cxMapPut(ext->table_lookup, table, (void*)table)) {
         return 1;
     }
      

mercurial