From d40d34863e23bbfce2fbdc05e85b92e7ae321ecd Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 22 Sep 2006 23:20:14 +0000 Subject: Fix pg_locks view to call advisory locks advisory locks, while preserving backward compatibility for anyone using the old userlock code that's now on pgfoundry --- locks from that code still show as 'userlock'. --- src/backend/storage/lmgr/lmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/storage/lmgr/lmgr.c') diff --git a/src/backend/storage/lmgr/lmgr.c b/src/backend/storage/lmgr/lmgr.c index 4442d3909f0..28e862533df 100644 --- a/src/backend/storage/lmgr/lmgr.c +++ b/src/backend/storage/lmgr/lmgr.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/storage/lmgr/lmgr.c,v 1.87 2006/08/18 16:09:09 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/storage/lmgr/lmgr.c,v 1.88 2006/09/22 23:20:13 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -629,6 +629,7 @@ LockTagIsTemp(const LOCKTAG *tag) /* there are currently no non-table temp objects */ break; case LOCKTAG_USERLOCK: + case LOCKTAG_ADVISORY: /* assume these aren't temp */ break; } -- cgit v1.2.3