Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group