Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitce72bc7

Browse files
committed
Don't use wiped memory for reporting offended rel in fill_prel_with_partitions.
1 parent38bf80e commitce72bc7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/relation_info.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,11 +769,14 @@ fill_prel_with_partitions(PartRelationInfo *prel,
769769
*/
770770
if (pbin->part_idx >=PrelChildrenCount(prel))
771771
{
772+
/* purged caches will destoy prel, save oid for reporting */
773+
Oidparent_relid=PrelParentRelid(prel);
774+
772775
DisablePathman();/* disable pg_pathman since config is broken */
773-
ereport(ERROR, (errmsg("pg_pathman's cache for relation\"%s\" "
776+
ereport(ERROR, (errmsg("pg_pathman's cache for relation%d "
774777
"has not been properly initialized. "
775778
"Looks like one of hash partitions was dropped.",
776-
get_rel_name_or_relid(PrelParentRelid(prel))),
779+
parent_relid),
777780
errhint(INIT_ERROR_HINT)));
778781
}
779782

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp