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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-06-14 09:53:29 UTC
  • mto: (6.1.1 sid) (10.1.1 oneiric-proposed) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20110614095329-71gfhjywyp2c27au
Tags: upstream-9.1~beta2
ImportĀ upstreamĀ versionĀ 9.1~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
        /*
62
62
         * Grab a DDL-exclusive lock on the target table, since we'll update the
63
 
         * pg_class tuple.  This is redundant for all present users.  Tuple toasting
64
 
         * behaves safely in the face of a concurrent TOAST table add.
 
63
         * pg_class tuple.      This is redundant for all present users.  Tuple
 
64
         * toasting behaves safely in the face of a concurrent TOAST table add.
65
65
         */
66
66
        rel = heap_open(relOid, ShareUpdateExclusiveLock);
67
67
 
274
274
        coloptions[1] = 0;
275
275
 
276
276
        index_create(toast_rel, toast_idxname, toastIndexOid,
277
 
                                                           indexInfo,
278
 
                                                           list_make2("chunk_id", "chunk_seq"),
279
 
                                                           BTREE_AM_OID,
280
 
                                                           rel->rd_rel->reltablespace,
281
 
                                         collationObjectId, classObjectId, coloptions, (Datum) 0,
282
 
                                                           true, false, false, false,
283
 
                                                           true, false, false);
 
277
                                 indexInfo,
 
278
                                 list_make2("chunk_id", "chunk_seq"),
 
279
                                 BTREE_AM_OID,
 
280
                                 rel->rd_rel->reltablespace,
 
281
                                 collationObjectId, classObjectId, coloptions, (Datum) 0,
 
282
                                 true, false, false, false,
 
283
                                 true, false, false);
284
284
 
285
285
        heap_close(toast_rel, NoLock);
286
286