| From: | Robert Haas <robertmhaas(at)gmail(dot)com> | 
|---|---|
| To: | Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com> | 
| Cc: | Dave Cramer <davecramer(at)postgres(dot)rocks>, Shay Rojansky <roji(at)roji(dot)org>, "Haumacher, Bernhard" <haui(at)haumacher(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> | 
| Subject: | Re: Error on failed COMMIT | 
| Date: | 2020-02-25 07:55:03 | 
| Message-ID: | CA+TgmoazgZYHyvXhKdNVxKmhJRqy8HcjZJa3j2bdsR3_Wj7=3Q@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
On Tue, Feb 25, 2020 at 12:47 PM Vladimir Sitnikov
<sitnikov(dot)vladimir(at)gmail(dot)com> wrote:
> Noone suggested that "commit leaves the session in a transaction state".
> Of course, every commit should terminate the transaction.
> However, if a commit fails (for any reason), it should produce the relevant ERROR that explains what went wrong rather than silently doing a rollback.
OK, I guess I misinterpreted the proposal. That would be much less
problematic -- any driver or application that can't handle ERROR in
response to an attempted COMMIT would be broken already.
-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2020-02-25 08:01:23 | Re: RS_EPHEMERAL vs RS_TEMPORARY | 
| Previous Message | imai.yoshikazu@fujitsu.com | 2020-02-25 07:53:26 | RE: [Proposal] Add accumulated statistics for wait event |