Skip to content

Commit 9424640

Browse files
committed
Fix incorrectly reported stats kind in "can't happen" ERROR
The error message(s) were reporting the stats kind of 'f', which is not correct as that's for the "dependencies" statistics kind. Reported-by: Horst Reiterer Reviewed-by: Richard Guo Discussion: https://postgr.es/m/18375-ba99383eb9062d6a@postgresql.org Backpatch-through: 12, where MCV extended stats were added.
1 parent 24dc4af commit 9424640

File tree

1 file changed

+1
-1
lines changed
  • src/backend/statistics

1 file changed

+1
-1
lines changed

src/backend/statistics/mcv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ statext_mcv_load(Oid mvoid)
572572
if (isnull)
573573
elog(ERROR,
574574
"requested statistics kind \"%c\" is not yet built for statistics object %u",
575-
STATS_EXT_DEPENDENCIES, mvoid);
575+
STATS_EXT_MCV, mvoid);
576576

577577
result = statext_mcv_deserialize(DatumGetByteaP(mcvlist));
578578

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