Postgresql 8.4.2, Windows XP - temporary file leak: File still referenced

Started by Алексейover 16 years ago3 messagesbugs
Jump to latest
#1Алексей
oktogen@mail.ru

windows or linux.
See test script

Attachments:

2.txttext/plain; name=2.txtDownload
1.txttext/plain; name=1.txtDownload
#2Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Алексей (#1)
Re: Postgresql 8.4.2, Windows XP - temporary file leak: File still referenced

О©╫О©╫О©╫О©╫О©╫О©╫О©╫ wrote:

windows or linux.
See test script

Hmm, looks like I broke this with the patch to fix the assertion failure
when a cursor is opeened in a subtransaction and the subtransaction is
then rolled back. Thanks for the report!

The bug is that when we put tuples to the tuplestore that holds the
tuples to be returned from the function, the current resource owner is
the subtransaction resource owner, which is closed at the end of
subtransaction. I'll fix that.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

#3Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Heikki Linnakangas (#2)
Re: Postgresql 8.4.2, Windows XP - temporary file leak: File still referenced

Heikki Linnakangas wrote:

О©╫О©╫О©╫О©╫О©╫О©╫О©╫ wrote:

windows or linux.
See test script

Hmm, looks like I broke this with the patch to fix the assertion failure
when a cursor is opeened in a subtransaction and the subtransaction is
then rolled back. Thanks for the report!

The bug is that when we put tuples to the tuplestore that holds the
tuples to be returned from the function, the current resource owner is
the subtransaction resource owner, which is closed at the end of
subtransaction. I'll fix that.

Fix committed now. Thanks for the report!

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com