From: Олег Самойлов <splarv@ya.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>
Subject: Re: Savepoints in plpgsql
Date: Mon, 5 Aug 2024 11:20:58 +0300
Message-ID: <1af26a1b-9b82-4f89-a5e1-eb86e5330c3d@ya.ru> (raw)
In-Reply-To: <2320320.1720791744@sss.pgh.pa.us>
References: <172076354433.736586.14347210271966220018@wrigleys.postgresql.org>
<CAKFQuwZXC2dDsDMLg77kWO4c7aiFwEn5LS9Hc9p-iooHXK+Ecw@mail.gmail.com>
<2320320.1720791744@sss.pgh.pa.us>
On 12.07.2024 16:42, Tom Lane wrote:
>
> PL/pgSQL does not support savepoints (SAVEPOINT/ROLLBACK TO
> SAVEPOINT/RELEASE SAVEPOINT commands). Typical usage patterns
> for savepoints can be replaced by blocks with exception handlers
> (see 43.6.8). Under the hood, a block with exception handlers
> forms a subtransaction, which means that transactions cannot
> be ended inside such a block.
>
> regards, tom lane
Yes, this will be fine.
--
Олег
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: splarv@ya.ru, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, pgsql-docs@lists.postgresql.org
Subject: Re: Savepoints in plpgsql
In-Reply-To: <1af26a1b-9b82-4f89-a5e1-eb86e5330c3d@ya.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox