Skip to content

Commit ce72bc7

Browse files
committed
Don't use wiped memory for reporting offended rel in fill_prel_with_partitions.
1 parent 38bf80e commit ce72bc7

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+
Oid parent_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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy