public inbox for [email protected]  
help / color / mirror / Atom feed
Re: About postgres pg_upgrade
2+ messages / 2 participants
[nested] [flat]

* Re: About postgres pg_upgrade
@ 2024-04-05 07:41  Daniel Gustafsson <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Daniel Gustafsson @ 2024-04-05 07:41 UTC (permalink / raw)
  To: Rama Krishnan <[email protected]>; +Cc: pgsql-general

> 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







^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: About postgres pg_upgrade
@ 2024-04-06 17:41  Bruce Momjian <[email protected]>
  parent: Daniel Gustafsson <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2024-04-06 17:41 UTC (permalink / raw)
  To: Daniel Gustafsson <[email protected]>; +Cc: Rama Krishnan <[email protected]>; pgsql-general

On Fri, Apr  5, 2024 at 09:41:05AM +0200, Daniel Gustafsson wrote:
> > 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.

This presentation shows how it works internally:

	https://momjian.us/main/writings/pgsql/pg_upgrade.pdf

-- 
  Bruce Momjian  <[email protected]>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-04-06 17:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-04-05 07:41 Re: About postgres pg_upgrade Daniel Gustafsson <[email protected]>
2024-04-06 17:41 ` Bruce Momjian <[email protected]>

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