Re: Explicit subtransactions for PL/Tcl

Victor Wagner <vitus@wagner.pp.ru>

From: Victor Wagner <vitus@wagner.pp.ru>
To: pgsql-hackers@postgresql.org
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Date: 2017-03-10T19:31:51Z
Lists: pgsql-hackers

Attachments

On Thu, 9 Mar 2017 12:04:31 +0100
Pavel Stehule <pavel.stehule@gmail.com> wrote:


> > Now test demonstrate how errors uncaught on the Tcl level interact
> > with postgresql error system.
> >
> 
> you can catch the exception outside and write own message

OK, here is patch with tests which don't depend on function OIDs

They ignore stack trace ($::errorinfo global variable) completely,
and analyze just error message.


-- 
                                   Victor Wagner <vitus@wagner.pp.ru>

Commits

  1. Add a "subtransaction" command to PL/Tcl.