On 7/10/26 15:32, Fujii Masao wrote:

On Fri, Jul 10, 2026 at 9:11 PM Ilia Evdokimov
<[email protected]> 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.

Since Beta 2 is scheduled for July 16, it might be worth getting this fixed before then. Incorrect error messages can mislead users during debugging.

--
Best regards,
Ilia Evdokimov,
Tantor Labs LLC,
https://tantorlabs.com/



Reply via email to