From 7aa772f03e03c361683cf05c8cd66a9bfc8956c7 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 18 Aug 2006 16:09:13 +0000 Subject: Now that we've rearranged relation open to get a lock before touching the rel, it's easy to get rid of the narrow race-condition window that used to exist in VACUUM and CLUSTER. Did some minor code-beautification work in the same area, too. --- src/include/storage/lmgr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/storage') diff --git a/src/include/storage/lmgr.h b/src/include/storage/lmgr.h index d0f9ba2b9c..ea7a1bf948 100644 --- a/src/include/storage/lmgr.h +++ b/src/include/storage/lmgr.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/lmgr.h,v 1.55 2006/07/31 20:09:05 tgl Exp $ + * $PostgreSQL: pgsql/src/include/storage/lmgr.h,v 1.56 2006/08/18 16:09:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -24,6 +24,7 @@ extern void RelationInitLockInfo(Relation relation); extern void LockRelationOid(Oid relid, LOCKMODE lockmode); extern bool ConditionalLockRelationOid(Oid relid, LOCKMODE lockmode); extern void UnlockRelationId(LockRelId *relid, LOCKMODE lockmode); +extern void UnlockRelationOid(Oid relid, LOCKMODE lockmode); extern void LockRelation(Relation relation, LOCKMODE lockmode); extern bool ConditionalLockRelation(Relation relation, LOCKMODE lockmode); -- cgit v1.2.1