~ubuntu-branches/ubuntu/trusty/postgresql-9.3/trusty-proposed

« back to all changes in this revision

Viewing changes to src/backend/optimizer/util/placeholder.c

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-07-24 16:13:59 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20140724161359-uk325qfv03euxuuh
Tags: 9.3.5-0ubuntu0.14.04.1
* New upstream bug fix release: (LP: #1348176)
  - pg_upgrade: Users who upgraded to version 9.3 using pg_upgrade may have
    an issue with transaction information which causes VACUUM to eventually
    fail. These users should run the script provided in the release notes to
    determine if their installation is affected, and then take the remedy
    steps outlined there.
  - Various data integrity and other bug fixes.
  - Secure Unix-domain sockets of temporary postmasters started during make
    check.
    Any local user able to access the socket file could connect as the
    server's bootstrap superuser, then proceed to execute arbitrary code as
    the operating-system user running the test, as we previously noted in
    CVE-2014-0067. This change defends against that risk by placing the
    server's socket in a temporary, mode 0700 subdirectory of /tmp.
  - See release notes for details:
    http://www.postgresql.org/about/news/1534/
* Remove pg_regress patches to support --host=/path, obsolete with above
  upstream changes and not applicable any more.
* Drop tcl8.6 patch, applied upstream.
* Add missing logrotate test dependency.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 * We build PlaceHolderInfos only for PHVs that are still present in the
61
61
 * simplified query passed to query_planner().
62
62
 *
63
 
 * Note: this should only be called after query_planner() has started.  Also,
 
63
 * Note: this should only be called after query_planner() has started.  Also,
64
64
 * create_new_ph must not be TRUE after deconstruct_jointree begins, because
65
65
 * make_outerjoininfo assumes that we already know about all placeholders.
66
66
 */
94
94
        /*
95
95
         * Any referenced rels that are outside the PHV's syntactic scope are
96
96
         * LATERAL references, which should be included in ph_lateral but not in
97
 
         * ph_eval_at.  If no referenced rels are within the syntactic scope,
 
97
         * ph_eval_at.  If no referenced rels are within the syntactic scope,
98
98
         * force evaluation at the syntactic location.
99
99
         */
100
100
        rels_used = pull_varnos((Node *) phv->phexpr);