Re: SPI_finish and RegisterExprContextCallback

Поиск
Список
Период
Сортировка
От Thomas Hallgren
Тема Re: SPI_finish and RegisterExprContextCallback
Дата
Msg-id thhal-0mhfyAs2qxicY+3IQMzjEfEnI4wqS5a@mailblocks.com
обсуждение исходный текст
Ответ на SPI_finish and RegisterExprContextCallback  (Thomas Hallgren <thhal@mailblocks.com>)
Список pgsql-hackers
I found another piece of information that might be of interest. This is 
related to nested calls and the ExprContextCallback but not related to 
nested active cursors.

AtCommitPortals (portalmem.c)  iterates over the entries in the 
PortalHashTable. This causes a chain of calls that sometimes reach an 
ExprContextCallback. If that callback issues a succesfull 
SPI_cursor_close some problems might lay ahead. As the AcCommitPortals 
iteration continues, it sometimes encounter a deleted portal and elogs 
with an error stating "trying to delete portal name that does not exist".

Regards,
Thomas Hallgren




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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: Get rid of system attributes in pg_attribute?
Следующее
От: Russell Smith
Дата:
Сообщение: Re: Data loss, vacuum, transaction wrap-around