pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <robertmhaas@gmail.com>
To: Christoph Berg <myon@debian.org>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgsql: pg_upgrade: Preserve relfilenodes and tablespace OIDs.
Date: Thu, 17 Feb 2022 10:59:37 -0500
Message-ID: <CA+Tgmoad8ZiMchVvD743GuETBozmkjVGv-7r5cKm7FoMxthODA@mail.gmail.com> (raw)
In-Reply-To: <YgjwrkEvNEqoz4Vm@msg.df7cb.de>
References: <E1n9XJu-0004j2-8W@gemulon.postgresql.org>
	<YgjwrkEvNEqoz4Vm@msg.df7cb.de>

On Sun, Feb 13, 2022 at 6:51 AM Christoph Berg <myon@debian.org> wrote:
> Re: Robert Haas
> > pg_upgrade: Preserve relfilenodes and tablespace OIDs.
>
> > src/bin/pg_dump/pg_dumpall.c                       |   3 +
>
> --- a/src/bin/pg_dump/pg_dumpall.c
> +++ b/src/bin/pg_dump/pg_dumpall.c
> @@ -1066,6 +1066,9 @@ dumpTablespaces(PGconn *conn)
>                 /* needed for buildACLCommands() */
>                 fspcname = pg_strdup(fmtId(spcname));
>
> +               appendPQExpBufferStr(buf, "\n-- For binary upgrade, must preserve pg_table
> +               appendPQExpBuffer(buf, "SELECT pg_catalog.binary_upgrade_set_next_pg_table
>
> This needs to be guarded with "if (binary_upgrade)".

Right. Sorry about that, and sorry for not responding sooner also. Fix
pushed now.

-- 
Robert Haas
EDB: http://www.enterprisedb.com





view thread (4+ messages)  latest in thread

Message-ID: <CA+Tgmoad8ZiMchVvD743GuETBozmkjVGv-7r5cKm7FoMxthODA@mail.gmail.com>
Permalink:  ../CA+Tgmoad8ZiMchVvD743GuETBozmkjVGv-7r5cKm7FoMxthODA@mail.gmail.com/
Also on:    postgresql.org/message-id/CA+Tgmoad8ZiMchVvD743GuETBozmkjVGv-7r5cKm7FoMxthODA@mail.gmail.com

 · 

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: robertmhaas@gmail.com, myon@debian.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: pgsql: pg_upgrade: Preserve relfilenodes and tablespace OIDs.
  In-Reply-To: <CA+Tgmoad8ZiMchVvD743GuETBozmkjVGv-7r5cKm7FoMxthODA@mail.gmail.com>
  References: <E1n9XJu-0004j2-8W@gemulon.postgresql.org> <YgjwrkEvNEqoz4Vm@msg.df7cb.de> <CA+Tgmoad8ZiMchVvD743GuETBozmkjVGv-7r5cKm7FoMxthODA@mail.gmail.com>

* 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