[PATCH] Add error_on_null() to produce an error if the input is null - Mailing list pgsql-hackers

From Joel Jacobson
Subject [PATCH] Add error_on_null() to produce an error if the input is null
Date
Msg-id ece8c6d1-2ab1-45d5-ba12-8dec96fc8886@app.fastmail.com
Whole thread Raw
Responses Re: [PATCH] Add error_on_null() to produce an error if the input is null
List pgsql-hackers
Dear fellow hackers,

This polymorphic function produces an error if the input value is null,
otherwise it returns the input value unchanged.

This need for this function originates from the discussion
"Assert single row returning SQL-standard functions" [1].

/Joel

[1] https://www.postgresql.org/message-id/flat/9233b657-696f-430f-9557-dc602a2b9e0e%40app.fastmail.com

Attachment

pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: Assert single row returning SQL-standard functions
Next
From: Vik Fearing
Date:
Subject: Re: [PATCH] Add error_on_null() to produce an error if the input is null