From ca8d4bdb047f97f00f03915bcd5fcb3d89534027 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Tue, 1 Sep 2026 08:12:38 +0900 Subject: [PATCH] Fix comment in attribute_stats.c Oversight in ce207d2a7901. Author: Corey Huinker Discussion: https://postgr.es/m/CADkLM=eo7MtuCE=YjovW+=ASw1=q39qQ3qarrsw+EKfU901ztA@mail.gmail.com Backpatch-through: 18 --- src/backend/statistics/attribute_stats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/statistics/attribute_stats.c b/src/backend/statistics/attribute_stats.c index e65c8dac4a4..5649d01ebe7 100644 --- a/src/backend/statistics/attribute_stats.c +++ b/src/backend/statistics/attribute_stats.c @@ -249,8 +249,8 @@ attribute_statistics_update_internal(Oid reloid, bool result = true; /* - * Check argument sanity. If some arguments are unusable, emit a WARNING - * and set the corresponding argument to NULL in fcinfo. + * Check argument sanity. If some arguments are unusable, emit a WARNING + * and skip the corresponding statistics kind, reporting back a failure. */ if (!stats_check_arg_array(fcinfo, attarginfo, MOST_COMMON_FREQS_ARG))