Re: Assertion failure in AtCleanup_Portals

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Assertion failure in AtCleanup_Portals
Date: 2012-02-06 21:33:26
Message-ID: 27845.1328564006@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com> writes:
> If I run the following sequence of commands, I get an assertion
> failure in current HEAD.

> postgres=# BEGIN;
> BEGIN
> postgres=# SELECT 1/0;
> ERROR: division by zero
> postgres=# ROLLBACK TO A;
> ERROR: no such savepoint
> postgres=# \q

> The process fails when the session is closed and aborted transaction
> gets cleaned at the proc_exit time. The stack trace is as below.

Hmm. It works fine if you issue an actual ROLLBACK command there,
so my gut reaction is that AbortOutOfAnyTransaction isn't sufficiently
duplicating the full-fledged ROLLBACK code path. No time to dig further
right now though.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2012-02-06 21:35:51 Re: Progress on fast path sorting, btree index creation time
Previous Message Bruce Momjian 2012-02-06 21:19:07 Re: Progress on fast path sorting, btree index creation time