Re: [BUGS] Out of memory error causes Abort, Abort tries to

2006-10-26 Thread Jeff Davis
On Wed, 2006-10-25 at 18:15 -0400, Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > Jeff Davis wrote: > >> * smgrGetPendingDeletes() calls palloc() > >> * palloc() fails, resulting in ERROR, causing infinite recursion > > > Hmm, maybe we could have AbortTransaction switch to ErrorC

Re: [BUGS] Out of memory error causes Abort, Abort tries to allocate memory

2006-10-25 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Jeff Davis wrote: >> * smgrGetPendingDeletes() calls palloc() >> * palloc() fails, resulting in ERROR, causing infinite recursion > Hmm, maybe we could have AbortTransaction switch to ErrorContext, which > has some preallocated space, before calling Rec

Re: [BUGS] Out of memory error causes Abort, Abort tries to

2006-10-25 Thread Jeff Davis
On Wed, 2006-10-25 at 16:20 -0300, Alvaro Herrera wrote: > Jeff Davis wrote: > > I found the root cause of the bug I reported at: > > > > http://archives.postgresql.org/pgsql-bugs/2006-10/msg00211.php > > > > What happens is this: > > * Out of memory condition causes an ERROR > > * ERROR triggers

Re: [BUGS] Out of memory error causes Abort, Abort tries to allocate memory

2006-10-25 Thread Alvaro Herrera
Jeff Davis wrote: > I found the root cause of the bug I reported at: > > http://archives.postgresql.org/pgsql-bugs/2006-10/msg00211.php > > What happens is this: > * Out of memory condition causes an ERROR > * ERROR triggers an AbortTransaction() > * AbortTransaction() calls RecordTransactionAbor

[BUGS] Out of memory error causes Abort, Abort tries to allocate memory

2006-10-25 Thread Jeff Davis
I found the root cause of the bug I reported at: http://archives.postgresql.org/pgsql-bugs/2006-10/msg00211.php What happens is this: * Out of memory condition causes an ERROR * ERROR triggers an AbortTransaction() * AbortTransaction() calls RecordTransactionAbort() * RecordTransactionAbort calls