Skip site navigation (1) Skip section navigation (2)

pgsql: Improved version of patch to protect pg_get_expr() against

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improved version of patch to protect pg_get_expr() against
Date: 2010-07-30 17:57:18
Message-ID: 20100730175718.B7EEC7541D5@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Improved version of patch to protect pg_get_expr() against misuse:
look through join alias Vars to avoid breaking join queries, and
move the test to someplace where it will catch more possible ways
of calling a function.  We still ought to throw away the whole thing
in favor of a data-type-based solution, but that's not feasible in
the back branches.

Completion of back-port of my patch of yesterday.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
    pgsql/src/backend/parser:
        parse_expr.c (r1.185.2.3 -> r1.185.2.4)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_expr.c?r1=1.185.2.3&r2=1.185.2.4)
        parse_func.c (r1.182.2.1 -> r1.182.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_func.c?r1=1.182.2.1&r2=1.182.2.2)
        parse_oper.c (r1.82.2.1 -> r1.82.2.2)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_oper.c?r1=1.82.2.1&r2=1.82.2.2)
    pgsql/src/include/parser:
        parse_func.h (r1.53 -> r1.53.6.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/parser/parse_func.h?r1=1.53&r2=1.53.6.1)

pgsql-committers by date

Next:From: Tom LaneDate: 2010-07-30 17:57:25
Subject: pgsql: Improved version of patch to protect pg_get_expr() against
Previous:From: Tom LaneDate: 2010-07-30 17:57:12
Subject: pgsql: Improved version of patch to protect pg_get_expr() against

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group