~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to src/backend/commands/schemacmds.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/commands/schemacmds.c,v 1.52 2009/01/01 17:23:39 momjian Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/commands/schemacmds.c,v 1.53 2009/06/11 14:48:56 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
87
87
         * temporarily set the current user so that the object(s) will be created
88
88
         * with the correct ownership.
89
89
         *
90
 
         * (The setting will be restored at the end of this routine, or in case
91
 
         * of error, transaction abort will clean things up.)
 
90
         * (The setting will be restored at the end of this routine, or in case of
 
91
         * error, transaction abort will clean things up.)
92
92
         */
93
93
        if (saved_uid != owner_uid)
94
94
                SetUserIdAndContext(owner_uid, true);
155
155
RemoveSchemas(DropStmt *drop)
156
156
{
157
157
        ObjectAddresses *objects;
158
 
        ListCell                *cell;
 
158
        ListCell   *cell;
159
159
 
160
160
        /*
161
161
         * First we identify all the schemas, then we delete them in a single
162
 
         * performMultipleDeletions() call.  This is to avoid unwanted
163
 
         * DROP RESTRICT errors if one of the schemas depends on another.
 
162
         * performMultipleDeletions() call.  This is to avoid unwanted DROP
 
163
         * RESTRICT errors if one of the schemas depends on another.
164
164
         */
165
165
        objects = new_object_addresses();
166
166