Re: BUG #16137: pg_upgrade fails with an index over nesting function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: exclusion(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16137: pg_upgrade fails with an index over nesting function
Date: 2019-11-25 23:18:25
Message-ID: 10565.1574723905@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> CREATE TABLE test(i INT PRIMARY KEY);
> CREATE FUNCTION func2(i INT) RETURNS INT IMMUTABLE LANGUAGE SQL
> AS 'SELECT $1';
> CREATE FUNCTION func1(c INT) RETURNS INT IMMUTABLE LANGUAGE SQL
> AS 'SELECT func2($1)';

This function is unreliable for lack of schema qualification.

I tend to agree that it'd be nice if pg_upgrade wouldn't be
so picky about that, but we haven't really found a way that
doesn't create security issues (cf CVE-2018-1058).

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Dean Rasheed 2019-11-26 10:56:33 Re: Failed assertion clauses != NIL
Previous Message Thomas Munro 2019-11-25 21:33:09 Re: LDAPS trusted ca support