Re: Numeric is not leakproof - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Numeric is not leakproof
Date
Msg-id 32453.1574954500@sss.pgh.pa.us
Whole thread Raw
In response to Numeric is not leakproof  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
List pgsql-bugs
Konstantin Knizhnik <k.knizhnik@postgrespro.ru> writes:
> Numeric functions are not marked as leakproof in pg_proc.dat

Indeed.  Nobody has done the analysis needed to decide that it'd be safe
to do so.  For comparison, see the rather considerable discussion that
occurred before marking the text comparison functions leakproof.

> But it seems to me that it may be reasonable to mark ALL builtin 
> functions (described in pg_proc.dat) as leekprof by default.

This proposal is risible.  But if you actually need a counterexample,
here's one:

regression=# select 'abc' ~ '(foo';
ERROR:  invalid regular expression: parentheses () not balanced

            regards, tom lane



pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BUG #16125: Crash of PostgreSQL's wal sender during logicalreplication
Next
From: Tom Lane
Date:
Subject: Re: BUG #16140: View with INSERT, DO INSTEAD, and ON CONFLICT causes an error