8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38bf80e commit ce72bc7Copy full SHA for ce72bc7
src/relation_info.c
@@ -769,11 +769,14 @@ fill_prel_with_partitions(PartRelationInfo *prel,
769
*/
770
if (pbin->part_idx >= PrelChildrenCount(prel))
771
{
772
+ /* purged caches will destoy prel, save oid for reporting */
773
+ Oid parent_relid = PrelParentRelid(prel);
774
+
775
DisablePathman(); /* disable pg_pathman since config is broken */
- ereport(ERROR, (errmsg("pg_pathman's cache for relation \"%s\" "
776
+ ereport(ERROR, (errmsg("pg_pathman's cache for relation %d "
777
"has not been properly initialized. "
778
"Looks like one of hash partitions was dropped.",
- get_rel_name_or_relid(PrelParentRelid(prel))),
779
+ parent_relid),
780
errhint(INIT_ERROR_HINT)));
781
}
782
0 commit comments