public inbox for [email protected]  
help / color / mirror / Atom feed
From: Daniel Gustafsson <[email protected]>
To: Rama Krishnan <[email protected]>
Cc: Postgres General <[email protected]>
Subject: Re: About postgres pg_upgrade
Date: Fri, 5 Apr 2024 09:41:05 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAJWX+EPcAyaNvEGP-1pS9iUTNWGM3_whENwgP+Sm2-Sc4wUrWA@mail.gmail.com>
References: <CAJWX+EPcAyaNvEGP-1pS9iUTNWGM3_whENwgP+Sm2-Sc4wUrWA@mail.gmail.com>

> On 5 Apr 2024, at 06:47, Rama Krishnan <[email protected]> wrote:

> Could you please explain me how does pg_upgrade works one of my friends it works based on pg_restore I am bit confused

The documentation does a fairly good job explaining how it works, and there are
multiple blogposts and presentations on the subject to be found.

	https://www.postgresql.org/docs/devel/pgupgrade.html

To summarize in a few words, pg_upgrade does a dump/restore of the schema from
the old cluster into the new, but copies the table data.  Your friend is thus
isn't wrong, it does use pg_restore but only for the schema, not the data.

--
Daniel Gustafsson







view thread (2+ messages)  latest in thread

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 using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: About postgres pg_upgrade
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox