~ubuntu-branches/ubuntu/precise/postgresql-9.1/precise-security

« back to all changes in this revision

Viewing changes to src/backend/catalog/heap.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-07-14 18:39:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110714183943-eqlbsrurk6kh6lou
Tags: 9.1~beta3-1
* New upstream beta release.
  - Works around gcc 4.6.0 bug. (Closes: #633086)

  Note that this does not change the data format since Beta 2, so no need
  to dump/reload clusters.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1286
1286
        /*
1287
1287
         * If this is an unlogged relation, it needs an init fork so that it can
1288
1288
         * be correctly reinitialized on restart.  Since we're going to do an
1289
 
         * immediate sync, we ony need to xlog this if archiving or streaming is
 
1289
         * immediate sync, we only need to xlog this if archiving or streaming is
1290
1290
         * enabled.  And the immediate sync is required, because otherwise there's
1291
1291
         * no guarantee that this will hit the disk before the next checkpoint
1292
1292
         * moves the redo pointer.
1295
1295
        {
1296
1296
                Assert(relkind == RELKIND_RELATION || relkind == RELKIND_TOASTVALUE);
1297
1297
 
 
1298
                RelationOpenSmgr(new_rel_desc);
1298
1299
                smgrcreate(new_rel_desc->rd_smgr, INIT_FORKNUM, false);
1299
1300
                if (XLogIsNeeded())
1300
1301
                        log_smgrcreate(&new_rel_desc->rd_smgr->smgr_rnode.node,