Re: Fatal error "stack empty" on ROLLBACK

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "dandl" <david(at)andl(dot)org>
Cc: "'PostgreSQL'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Fatal error "stack empty" on ROLLBACK
Date: 2016-05-23 16:55:43
Message-ID: 31794.1464022543@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"dandl" <david(at)andl(dot)org> writes:
> SPI call to execute "ROLLBACK" triggers FATAL ERROR "stack empty". What does
> it mean? Nothing in the docs I can see.

I can't find that string anywhere in the Postgres sources. However,
SPI should refuse to execute ROLLBACK, or any other transaction control
command; it should give you back a SPI_ERROR_TRANSACTION result code
instead. Maybe you're not checking for failure results and expecting
the command to have done something?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Crosbie 2016-05-23 18:18:15 postgres 9.5 create function plpthon3u resets connections to server
Previous Message Andrej Vanek 2016-05-23 16:04:52 Re: pg_basebackup: return value 1: reason?