15
15
*
16
16
*
17
17
* IDENTIFICATION
18
- *$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.166 2009/03/11 03:33:29 adunstan Exp $
18
+ *$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.167 2009/03/13 22:50:44 tgl Exp $
19
19
*
20
20
*-------------------------------------------------------------------------
21
21
*/
@@ -3732,8 +3732,11 @@ identify_locking_dependencies(TocEntry *te, TocEntry **tocsByDumpId)
3732
3732
return ;
3733
3733
3734
3734
/*
3735
- * We assume the item requires exclusive lock on each TABLE item
3736
- * listed among its dependencies.
3735
+ * We assume the item requires exclusive lock on each TABLE DATA item
3736
+ * listed among its dependencies. (This was originally a dependency
3737
+ * on the TABLE, but fix_dependencies repointed it to the data item.
3738
+ * Note that all the entry types we are interested in here are POST_DATA,
3739
+ * so they will all have been changed this way.)
3737
3740
*/
3738
3741
lockids = (DumpId * )malloc (te -> nDeps * sizeof (DumpId ));
3739
3742
nlockids = 0 ;
@@ -3742,7 +3745,7 @@ identify_locking_dependencies(TocEntry *te, TocEntry **tocsByDumpId)
3742
3745
DumpId depid = te -> dependencies [i ];
3743
3746
3744
3747
if (tocsByDumpId [depid - 1 ]&&
3745
- strcmp (tocsByDumpId [depid - 1 ]-> desc ,"TABLE" )== 0 )
3748
+ strcmp (tocsByDumpId [depid - 1 ]-> desc ,"TABLE DATA " )== 0 )
3746
3749
lockids [nlockids ++ ]= depid ;
3747
3750
}
3748
3751