Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a53a607

Browse filesBrowse files
committed
Fix previous commit: actually disable pathman in case of trouble.
1 parent e2d29d2 commit a53a607
Copy full SHA for a53a607

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎src/relation_info.c

Copy file name to clipboardExpand all lines: src/relation_info.c
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,11 +761,14 @@ fill_prel_with_partitions(PartRelationInfo *prel,
761761
* bound cache still keeps entries with high indexes.
762762
*/
763763
if (pbin->part_idx >= PrelChildrenCount(prel))
764+
{
765+
DisablePathman(); /* disable pg_pathman since config is broken */
764766
ereport(ERROR, (errmsg("pg_pathman's cache for relation \"%s\" "
765767
"has not been properly initialized. "
766768
"Looks like one of hash partitions was dropped.",
767769
get_rel_name_or_relid(PrelParentRelid(prel))),
768770
errhint(INIT_ERROR_HINT)));
771+
}
769772

770773
prel->children[pbin->part_idx] = pbin->child_relid;
771774
break;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.