Skip to content

Commit 2df7533

Browse files
committed
fixed the config loading issue
1 parent ab0709b commit 2df7533

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

init.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,11 @@ load_relations_hashtable(bool reinitialize)
174174
ListCell *lc;
175175
char *schema;
176176
PartRelationInfo *prel;
177-
char sql[] = "SELECT pg_class.relfilenode, pg_attribute.attnum, cfg.parttype, pg_attribute.atttypid "
177+
char sql[] = "SELECT pg_class.oid, pg_attribute.attnum, cfg.parttype, pg_attribute.atttypid "
178178
"FROM %s.pathman_config as cfg "
179-
"JOIN pg_class ON pg_class.relfilenode = cfg.relname::regclass::oid "
179+
"JOIN pg_class ON pg_class.oid = cfg.relname::regclass::oid "
180180
"JOIN pg_attribute ON pg_attribute.attname = lower(cfg.attname) "
181-
"AND attrelid = pg_class.relfilenode";
181+
"AND attrelid = pg_class.oid";
182182
char *query;
183183

184184
SPI_connect();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy