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

« back to all changes in this revision

Viewing changes to src/backend/catalog/pg_depend.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:
50
50
 
51
51
/*
52
52
 * Record multiple dependencies (of the same kind) for a single dependent
53
 
 * object.      This has a little less overhead than recording each separately.
 
53
 * object.  This has a little less overhead than recording each separately.
54
54
 */
55
55
void
56
56
recordMultipleDependencies(const ObjectAddress *depender,
127
127
 
128
128
/*
129
129
 * If we are executing a CREATE EXTENSION operation, mark the given object
130
 
 * as being a member of the extension.  Otherwise, do nothing.
 
130
 * as being a member of the extension.  Otherwise, do nothing.
131
131
 *
132
132
 * This must be called during creation of any user-definable object type
133
133
 * that could be a member of an extension.
186
186
 * (possibly with some differences from before).
187
187
 *
188
188
 * If skipExtensionDeps is true, we do not delete any dependencies that
189
 
 * show that the given object is a member of an extension.      This avoids
 
189
 * show that the given object is a member of an extension.  This avoids
190
190
 * needing a lot of extra logic to fetch and recreate that dependency.
191
191
 */
192
192
long
492
492
 * Detect whether a sequence is marked as "owned" by a column
493
493
 *
494
494
 * An ownership marker is an AUTO dependency from the sequence to the
495
 
 * column.      If we find one, store the identity of the owning column
 
495
 * column.  If we find one, store the identity of the owning column
496
496
 * into *tableId and *colId and return TRUE; else return FALSE.
497
497
 *
498
498
 * Note: if there's more than one such pg_depend entry then you get