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

« back to all changes in this revision

Viewing changes to src/backend/access/transam/twophase.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:
7
7
 * Portions Copyright (c) 1994, Regents of the University of California
8
8
 *
9
9
 * IDENTIFICATION
10
 
 *              $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.52 2009/04/23 00:23:45 tgl Exp $
 
10
 *              $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.54 2009/06/25 19:05:52 heikki Exp $
11
11
 *
12
12
 * NOTES
13
13
 *              Each global transaction is associated with a global transaction
233
233
                ereport(ERROR,
234
234
                                (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
235
235
                                 errmsg("prepared transactions are disabled"),
236
 
                                 errhint("Set max_prepared_transactions to a nonzero value.")));
 
236
                          errhint("Set max_prepared_transactions to a nonzero value.")));
237
237
 
238
238
        LWLockAcquire(TwoPhaseStateLock, LW_EXCLUSIVE);
239
239
 
1241
1241
                for (fork = 0; fork <= MAX_FORKNUM; fork++)
1242
1242
                {
1243
1243
                        if (smgrexists(srel, fork))
1244
 
                        {
1245
 
                                XLogDropRelation(delrels[i], fork);
1246
 
                                smgrdounlink(srel, fork, false, true);
1247
 
                        }
 
1244
                                smgrdounlink(srel, fork, false, false);
1248
1245
                }
1249
1246
                smgrclose(srel);
1250
1247
        }