~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to src/bin/pg_dump/pg_dump_sort.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-01 17:41:41 UTC
  • mfrom: (1.1.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20090701174141-jfmn9tt8e69m950x
Tags: 8.4.0-1
* Final 8.4.0 release. Major enhancements:
  - Windowing Functions
  - Common Table Expressions and Recursive Queries
  - Default and variadic parameters for functions
  - Parallel Restore
  - Column Permissions
  - Per-database locale settings
  - Improved hash indexes
  - Improved join performance for EXISTS and NOT EXISTS queries
  - Easier-to-use Warm Standby
  - Automatic sizing of the Free Space Map
  - Visibility Map (greatly reduces vacuum overhead for slowly-changing
    tables)
  - Version-aware psql (backslash commands work against older servers)
  - Support SSL certificates for user authentication
  - Per-function runtime statistics
  - Easy editing of functions in psql
  - New contrib modules: pg_stat_statements, auto_explain, citext,
    btree_gin 
  Upload to unstable, 8.4 is the new default. 
* debian/control: Build the versionless metapackages and have them point to
  8.4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 *
10
10
 *
11
11
 * IDENTIFICATION
12
 
 *        $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump_sort.c,v 1.24 2009/01/18 20:44:45 tgl Exp $
 
12
 *        $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump_sort.c,v 1.25 2009/06/11 14:49:07 momjian Exp $
13
13
 *
14
14
 *-------------------------------------------------------------------------
15
15
 */
955
955
        /*
956
956
         * If all the objects are TABLE_DATA items, what we must have is a
957
957
         * circular set of foreign key constraints (or a single self-referential
958
 
         * table).  Print an appropriate complaint and break the loop arbitrarily.
 
958
         * table).      Print an appropriate complaint and break the loop arbitrarily.
959
959
         */
960
960
        for (i = 0; i < nLoop; i++)
961
961
        {
971
971
                write_msg(NULL, "Consider using a full dump instead of a --data-only dump to avoid this problem.\n");
972
972
                if (nLoop > 1)
973
973
                        removeObjectDependency(loop[0], loop[1]->dumpId);
974
 
                else                                            /* must be a self-dependency */
 
974
                else    /* must be a self-dependency */
975
975
                        removeObjectDependency(loop[0], loop[0]->dumpId);
976
976
                return;
977
977
        }
991
991
 
992
992
        if (nLoop > 1)
993
993
                removeObjectDependency(loop[0], loop[1]->dumpId);
994
 
        else                                            /* must be a self-dependency */
 
994
        else    /* must be a self-dependency */
995
995
                removeObjectDependency(loop[0], loop[0]->dumpId);
996
996
}
997
997