Re: pg_upgrade as a way of cloning an instance? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: pg_upgrade as a way of cloning an instance?
Date
Msg-id 20210708003051.GA1173@momjian.us
Whole thread Raw
In response to Re: pg_upgrade as a way of cloning an instance?  (Luca Ferrari <fluca1978@gmail.com>)
Responses Re: pg_upgrade as a way of cloning an instance?  (Luca Ferrari <fluca1978@gmail.com>)
List pgsql-general
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.




pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Doubt on pgbouncer
Next
From: 管竚
Date:
Subject: Re: Does psqlodbc_10_03_0000-x86(32bit) support PostgreSQL 12.664bit?