Re: [PATCH] Add error_on_null() to produce an error if the input is null

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [PATCH] Add error_on_null() to produce an error if the input is null
Дата
Msg-id aPdBYG9I4jLFPriT@paquier.xyz
обсуждение исходный текст
Ответ на Re: [PATCH] Add error_on_null() to produce an error if the input is null  (Vik Fearing <vik@postgresfriends.org>)
Ответы Re: [PATCH] Add error_on_null() to produce an error if the input is null
Список pgsql-hackers
On Sun, Aug 31, 2025 at 04:16:42PM +0200, Vik Fearing wrote:
> Thank you.  Updated.

This one was marked as committer, so I am looking at it.

The original proposal can also be tracked in this message, where you
want to have a trick for SQL bodies to be able to detect if exactly
one row is returned:
https://www.postgresql.org/message-id/de94808d-ed58-4536-9e28-e79b09a534c7@app.fastmail.com

Why not if this simple solution works for you, using error_on_null()
as the function name.  I'll double-check the whole, probably tomorrow.
--
Michael

Вложения

В списке pgsql-hackers по дате отправления: