Re: [HACKERS] quote_literal with NULL - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] quote_literal with NULL
Date
Msg-id 14280.1192458501@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] quote_literal with NULL  ("Brendan Jurd" <direvus@gmail.com>)
List pgsql-patches
"Brendan Jurd" <direvus@gmail.com> writes:
> I'm all for the prevalance of sanity, but I'm not really clear on what
> about the above scenario is not sane.

Well, a situation like that just calls into question whether there's
been a mistake --- in particular whether the underlying function is
really null-safe or not.

We could remove the opr_sanity test, but to me that'd be akin to
disabling a compiler warning.  Our project policy has generally been
to write warning-free code, instead.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Updated patch for tsearch contrib examples
Next
From: Tom Lane
Date:
Subject: Re: Assertion failure with small block sizes