From: Bruce Momjian <bruce@momjian.us>
To: Luca Ferrari <fluca1978@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: pg_upgrade as a way of cloning an instance?
Date: Wed, 7 Jul 2021 20:30:51 -0400
Message-ID: <20210708003051.GA1173@momjian.us> (raw)
In-Reply-To: <CAKoxK+4M-uM8WaoSGTKdUx=Sxci-_N3s01FY=vx6fom4p+iF0A@mail.gmail.com>
References: <CAKoxK+7GD7_y2q9+DBMRa6H4WuWmKvUYo5S5Y=paG-rcf+EjgQ@mail.gmail.com>
<8ba0ee71-063d-112b-66dc-2971456f8a8a@enterprisedb.com>
<CAKoxK+4M-uM8WaoSGTKdUx=Sxci-_N3s01FY=vx6fom4p+iF0A@mail.gmail.com>
On Wed, Jul 7, 2021 at 10:30:15AM +0200, Luca Ferrari wrote:
> On Wed, Jul 7, 2021 at 10:22 AM Peter Eisentraut
> <peter.eisentraut@enterprisedb.com> wrote:
> > Yeah, seems pretty pointless. You can just copy the data directory
> > directly and get the same effect. pg_upgrade basically does a data
> > directory copy plus some extra stuff to convert the system catalogs
> > between versions, and if you don't need that second part, you might as
> > well do the first part directly.
>
>
> Agree on everything, but I was curious, since users sometime find ways
> to do things that are almost insane!
Also, pg_upgrade will throw an error if copying from one version to the
same version if there are tablespaces since the tablespace directory
name is the catalog version name.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
If only the physical world exists, free will is an illusion.
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-general@postgresql.org
Cc: bruce@momjian.us, fluca1978@gmail.com, peter.eisentraut@enterprisedb.com
Subject: Re: pg_upgrade as a way of cloning an instance?
In-Reply-To: <20210708003051.GA1173@momjian.us>
References: <CAKoxK+7GD7_y2q9+DBMRa6H4WuWmKvUYo5S5Y=paG-rcf+EjgQ@mail.gmail.com> <8ba0ee71-063d-112b-66dc-2971456f8a8a@enterprisedb.com> <CAKoxK+4M-uM8WaoSGTKdUx=Sxci-_N3s01FY=vx6fom4p+iF0A@mail.gmail.com> <20210708003051.GA1173@momjian.us>
* 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