dropdb lock

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема dropdb lock
Дата
Msg-id 437F6BDE.6010501@dunslane.net
обсуждение исходный текст
Ответы Re: dropdb lock  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Returning multiple result sets
Следующее
От: Tom Lane
Дата:
Сообщение: Re: dropdb lock