Re: IGNORE/RESPECT NULLS can be specified for (prokind == 'f').
Fujii Masao <masao.fujii@gmail.com>
From: Fujii Masao <masao.fujii@gmail.com>
To: Álvaro Herrera <alvherre@kurilemu.de>
Cc: Chao Li <li.evan.chao@gmail.com>, Tatsuo Ishii <ishii@postgresql.org>, jian.universality@gmail.com, pgsql-hackers@postgresql.org
Date: 2026-06-18T16:12:08Z
Lists: pgsql-hackers
Attachments
- v3-0001-Refine-error-reporting-for-null-treatment-on-non-.patch (application/octet-stream) patch v3-0001
On Thu, Jun 18, 2026 at 11:46 PM Álvaro Herrera <alvherre@kurilemu.de> wrote:
>
> Hello,
>
> I would dearly appreciate it if you could make these errors in this
> style:
>
> ereport(ERROR,
> (errcode(ERRCODE_WRONG_OBJECT_TYPE),
> /* translator: first %s is a CREATE FUNCTION clause, eg. "IGNORE NULLS" */
> errmsg("%s specified, but %s is not a window function",
> "RESPECT/IGNORE NULLS", NameListToString(funcname)),
> parser_errposition(pstate, location)));
>
> to avoid keeping the clause name in the translatable string.
Thanks for the suggestion! I've updated the patch accordingly.
Patch attached.
Regards,
--
Fujii Masao
Commits
-
Remove stray blank line in ParseFuncOrColumn()
- b07664a179bd 19 (unreleased) landed
- d8113095c488 master landed
-
Refine error reporting for null treatment on non-window functions
- 419ce13b7019 19 (unreleased) landed
-
Fix error message typo.
- ab3023ad1e68 19 (unreleased) landed
-
Fix to not allow null treatment to non window functions.
- 4e5920e6de87 19 (unreleased) landed
-
Add IGNORE NULLS/RESPECT NULLS option to Window functions.
- 25a30bbd4235 19 (unreleased) cited