Re: [BUGS] BUG #5906: assertion failure in AtCleanup_Portals

2011-03-03 Thread Tom Lane
I wrote: > We could revert the addition of the "cleanup == NULL" assert in > AtCleanup_Portals, but I'm still feeling that that assertion is a good > thing. Maybe the cleanest fix is to have PortalRun do something to run > the cleanup hook where it does this: > /* Prevent portal's

Re: [BUGS] BUG #5906: assertion failure in AtCleanup_Portals

2011-03-03 Thread Tom Lane
Itagaki Takahiro writes: > On Thu, Mar 3, 2011 at 09:14, YAMAMOTO Takashi wrote: >> here's a small test case. > I was able to reproduce the assertion failure. > It looks we call CreatePortal for ROLLBACK, but don't invoke > DropPortal nor AtAbort_Portals before AtCleanup_Portals. Hmm. The rea

Re: [BUGS] BUG #5906: assertion failure in AtCleanup_Portals

2011-03-03 Thread Itagaki Takahiro
On Thu, Mar 3, 2011 at 09:14, YAMAMOTO Takashi wrote: >>> i got the following with my application, which uses >>> PQsendPrepare+PQsendQueryPrepared for nearly everything >>> including ROLLBACK. > > here's a small test case. I was able to reproduce the assertion failure. It looks we call CreatePo

Re: [BUGS] BUG #5906: assertion failure in AtCleanup_Portals

2011-03-02 Thread YAMAMOTO Takashi
hi, > "YAMAMOTO Takashi" writes: >> i got the following with my application, which uses >> PQsendPrepare+PQsendQueryPrepared for nearly everything >> including ROLLBACK. > > Can't do anything about that without a test case. > > regards, tom lane here's a small test case.

Re: [BUGS] BUG #5906: assertion failure in AtCleanup_Portals

2011-03-02 Thread Tom Lane
"YAMAMOTO Takashi" writes: > i got the following with my application, which uses > PQsendPrepare+PQsendQueryPrepared for nearly everything > including ROLLBACK. Can't do anything about that without a test case. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsq

[BUGS] BUG #5906: assertion failure in AtCleanup_Portals

2011-03-02 Thread YAMAMOTO Takashi
The following bug has been logged online: Bug reference: 5906 Logged by: YAMAMOTO Takashi Email address: y...@mwd.biglobe.ne.jp PostgreSQL version: 9.1devel Operating system: NetBSD current Description:assertion failure in AtCleanup_Portals Details: i got the follow