pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_upgrade:  generate check error for left-over new tablespace
Date: Thu, 15 Oct 2020 23:33:54 +0000
Message-ID: <E1kTCks-0004vA-HY@gemulon.postgresql.org> (raw)

pg_upgrade:  generate check error for left-over new tablespace

Previously, if pg_upgrade failed, and the user recreated the cluster but
did not remove the new cluster tablespace directory, a later pg_upgrade
would fail since the new tablespace directory would already exists.
This adds error reporting for this during check.

Reported-by: Justin Pryzby

Discussion: https://postgr.es/m/20200925005531.GJ23631@telsasoft.com

Backpatch-through: 9.5

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/59cfff65b10036b637a3f6e50d8f654e855d3b69

Modified Files
--------------
src/bin/pg_upgrade/check.c | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)



view thread (7+ messages)  latest in thread

Message-ID: <E1kTCks-0004vA-HY@gemulon.postgresql.org>
Permalink:  ../E1kTCks-0004vA-HY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kTCks-0004vA-HY@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: bruce@momjian.us
  Subject: Re: pgsql: pg_upgrade:  generate check error for left-over new tablespace
  In-Reply-To: <E1kTCks-0004vA-HY@gemulon.postgresql.org>
  References: <E1kTCks-0004vA-HY@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