]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix incorrectly reported stats kind in "can't happen" ERROR
authorDavid Rowley <drowley@postgresql.org>
Tue, 5 Mar 2024 03:17:53 +0000 (16:17 +1300)
committerDavid Rowley <drowley@postgresql.org>
Tue, 5 Mar 2024 03:17:53 +0000 (16:17 +1300)
commitac7e6a01c7171447ab54270a07d27e89ac3646a3
treecf9042ee859942a738cfd6da93aea527056de85a
parentb78f4d22b2f21a3efd1cb8969c9e8fa1f52466c5
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.
src/backend/statistics/extended_stats.c
src/backend/statistics/mcv.c