Further fixes to the pg_get_expr() security fix in back branches.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 46286d62092c2f97fdc68ff0ffa02739395340e9
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-09-25T20:53:26Z
Releases: 8.0.26
Further fixes to the pg_get_expr() security fix in back branches.

It now emerges that the JDBC driver expects to be able to use pg_get_expr()
on an output of a sub-SELECT.  So extend the check logic to be able to recurse
into a sub-SELECT to see if the argument is ultimately coming from an
appropriate column.  Per report from Thomas Kellerer.

Files

PathChange+/−
src/backend/parser/parse_func.c modified +56 −24