dropdb lock

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: dropdb lock
Date: 2005-11-19 18:15:58
Message-ID: 437F6BDE.6010501@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In dbcommands.c::dropdb() there are these lines:

/* Close pg_database, but keep exclusive lock till commit */
heap_close(pgdbrel, NoLock);

However, ISTM that if I return early from that function because the db
doesn't exist I should release the lock immediately. Or is there
something I have missed? Is that the only cleanup I would need for the
IF EXISTS case (looks like it to me)?

cheers

andrew

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-11-19 18:57:47 Re: dropdb lock
Previous Message Martijn van Oosterhout 2005-11-19 18:02:42 Re: Returning multiple result sets