pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify some ERROR paths clearing wait events and transient fil
Date: Wed, 17 Apr 2019 00:57:09 +0000
Message-ID: <E1hGYsv-0000hg-0A@gemulon.postgresql.org> (raw)

Simplify some ERROR paths clearing wait events and transient files

Transient files and wait events get normally cleaned up when seeing an
exception (be it in the context of a transaction for a backend or
another process like the checkpointer), hence there is little point in
complicating error code paths to do this work.  This shaves a bit of
code, and removes some extra handling with errno which needed to be
preserved during the cleanup steps done.

Reported-by: Masahiko Sawada
Author: Michael Paquier
Reviewed-by: Tom Lane, Masahiko Sawada
Discussion: https://postgr.es/m/CAD21AoDhHYVq5KkXfkaHhmjA-zJYj-e4teiRAJefvXuKJz1tKQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/47ac2033d460cefbbda2e39732e18de521dc6a36

Modified Files
--------------
src/backend/access/transam/twophase.c    | 22 ++++------------------
src/backend/replication/logical/origin.c | 21 ++++++---------------
src/backend/replication/slot.c           | 14 --------------
src/backend/storage/file/copydir.c       |  1 -
4 files changed, 10 insertions(+), 48 deletions(-)



Message-ID: <E1hGYsv-0000hg-0A@gemulon.postgresql.org>
Permalink:  ../E1hGYsv-0000hg-0A@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hGYsv-0000hg-0A@gemulon.postgresql.org

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Simplify some ERROR paths clearing wait events and transient fil
  In-Reply-To: <E1hGYsv-0000hg-0A@gemulon.postgresql.org>
  References: <E1hGYsv-0000hg-0A@gemulon.postgresql.org>

* 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