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

« back to all changes in this revision

Viewing changes to src/include/executor/hashjoin.h

  • 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:
41
41
 * If nbatch > 1 then tuples that don't belong in first batch get saved
42
42
 * into inner-batch temp files. The same statements apply for the
43
43
 * first scan of the outer relation, except we write tuples to outer-batch
44
 
 * temp files.  After finishing the first scan, we do the following for
 
44
 * temp files.  After finishing the first scan, we do the following for
45
45
 * each remaining batch:
46
46
 *      1. Read tuples from inner batch file, load into hash buckets.
47
47
 *      2. Read tuples from outer batch file, match to hash buckets and output.
132
132
 
133
133
        /*
134
134
         * These arrays are allocated for the life of the hash join, but only if
135
 
         * nbatch > 1.  A file is opened only when we first write a tuple into it
 
135
         * nbatch > 1.  A file is opened only when we first write a tuple into it
136
136
         * (otherwise its pointer remains NULL).  Note that the zero'th array
137
137
         * elements never get used, since we will process rather than dump out any
138
138
         * tuples of batch zero.