Re: Wrong argument name in error message from attribute_stats functions - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Wrong argument name in error message from attribute_stats functions
Date
Msg-id CAHGQGwGDpHB4eKnk=GPhOZb1tCq0hKnwQmL4Aj7aprnL7itX1w@mail.gmail.com
Whole thread
In response to Wrong argument name in error message from attribute_stats functions  (Ilia Evdokimov <ilya.evdokimov@tantorlabs.com>)
Responses Re: Wrong argument name in error message from attribute_stats functions
List pgsql-hackers
On Fri, Jul 10, 2026 at 9:11 PM Ilia Evdokimov
<ilya.evdokimov@tantorlabs.com> wrote:
>
> Hi,
>
> While using pg_clear_attribute_stats() I noticed weird printing:
>
> ```
> CREATE TABLE t(a int);
> SELECT pg_clear_attribute_stats(NULL, 't', 'a', false);
> ERROR:  argument "relation" must not be null
> ```
>
> NULL was passed for `schemaname`, not for a `relation` argument. This
> comes from cleararginfo[], where both the schema and relname entries are
> labeled `relation`.
>
> In v1-patch I propose naming these the same way `pg_proc.dat` does, i.e.
> `schemaname` and `relname`.

Thanks for the patch! LGTM.

Regards,

--
Fujii Masao



pgsql-hackers by date:

Previous
From: Ilia Evdokimov
Date:
Subject: Wrong argument name in error message from attribute_stats functions
Next
From: vignesh C
Date:
Subject: Re: sequencesync worker race with REFRESH SEQUENCES