Skip to content

Commit de0197d

Browse files
committed
Warn that pathman is disabled in case of broken hash partitioned table.
1 parent 2ec3923 commit de0197d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/relation_info.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -809,9 +809,10 @@ fill_prel_with_partitions(PartRelationInfo *prel,
809809
if (!OidIsValid(prel->children[i]))
810810
{
811811
DisablePathman(); /* disable pg_pathman since config is broken */
812-
elog(ERROR, "pg_pathman's cache for relation \"%s\" "
813-
"has not been properly initialized",
814-
get_rel_name_or_relid(PrelParentRelid(prel)));
812+
ereport(ERROR, (errmsg("pg_pathman's cache for relation \"%s\" "
813+
"has not been properly initialized",
814+
get_rel_name_or_relid(PrelParentRelid(prel))),
815+
errhint(INIT_ERROR_HINT)));
815816
}
816817
}
817818
}

0 commit comments

Comments
 (0)