Re: remove SIBackendInit return value
От
Alvaro Herrera
Тема
Re: remove SIBackendInit return value
Дата
Msg-id
20070625202218.GF15627@alvh.no-ip.org
Ответ на
Re: remove SIBackendInit return value (Tom Lane)
Список
Дерево обсуждения
remove SIBackendInit return value Alvaro Herrera <alvherre@commandprompt.com>
Re: remove SIBackendInit return value Tom Lane <tgl@sss.pgh.pa.us>
Re: remove SIBackendInit return value Alvaro Herrera <alvherre@commandprompt.com>
Tom Lane wrote: > Alvaro Herrera writes: > > SIBackendInit returns a flag indicating whether it worked or not. Since > > there is only one caller and it dies with a FATAL error when > > SIBackendInit failed, it seems better to move the elog and remove the > > return value, per this patch. > > The reason for the existing coding is to release the SInvalLock before > throwing the error. Now proc_exit cleanup should release the lock > anyway, but this proposed change will mean that a failing backend holds > the lock a bit longer before releasing, which might be a bad thing. I'll leave this alone until early 8.4. Thanks for the insight. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-patches по дате отправления