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

« back to all changes in this revision

Viewing changes to src/backend/commands/lockcmds.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/lockcmds.c,v 1.24 2009/05/12 16:43:32 tgl Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/commands/lockcmds.c,v 1.25 2009/06/11 14:48:56 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
25
25
#include "utils/lsyscache.h"
26
26
 
27
27
static void LockTableRecurse(Oid reloid, RangeVar *rv,
28
 
                                                         LOCKMODE lockmode, bool nowait, bool recurse);
 
28
                                 LOCKMODE lockmode, bool nowait, bool recurse);
29
29
 
30
30
 
31
31
/*
67
67
        AclResult       aclresult;
68
68
 
69
69
        /*
70
 
         * Acquire the lock.  We must do this first to protect against
71
 
         * concurrent drops.  Note that a lock against an already-dropped
72
 
         * relation's OID won't fail.
 
70
         * Acquire the lock.  We must do this first to protect against concurrent
 
71
         * drops.  Note that a lock against an already-dropped relation's OID
 
72
         * won't fail.
73
73
         */
74
74
        if (nowait)
75
75
        {
148
148
         */
149
149
        if (recurse)
150
150
        {
151
 
                List   *children = find_inheritance_children(reloid, NoLock);
152
 
                ListCell *lc;
 
151
                List       *children = find_inheritance_children(reloid, NoLock);
 
152
                ListCell   *lc;
153
153
 
154
154
                foreach(lc, children)
155
155
                {