Skip to content

Commit 47471b1

Browse files
committed
pathman: minor fix
1 parent 1e5c3ef commit 47471b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/pg_pathman/init.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ load_relations_hashtable(bool reinitialize)
7878
ListCell *lc;
7979
char *schema;
8080
PartRelationInfo *prel;
81-
char sql[] = "SELECT pg_class.relfilenode, pg_attribute.attnum, pathman_config.parttype, pg_attribute.atttypid "
82-
"FROM %s.pathman_config "
83-
"JOIN pg_class ON pg_class.relfilenode = pathman_config.relname::regclass::oid "
84-
"JOIN pg_attribute ON pg_attribute.attname = pathman_config.attname "
81+
char sql[] = "SELECT pg_class.relfilenode, pg_attribute.attnum, cfg.parttype, pg_attribute.atttypid "
82+
"FROM %s.pathman_config as cfg "
83+
"JOIN pg_class ON pg_class.relfilenode = cfg.relname::regclass::oid "
84+
"JOIN pg_attribute ON pg_attribute.attname = cfg.attname "
8585
"AND attrelid = pg_class.relfilenode";
8686
char *query;
8787

0 commit comments

Comments
 (0)