pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alban Hertroys <haramrae@gmail.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Upgrading 6 versions between 2 systems
Date: Tue, 15 Sep 2026 10:02:13 +0200
Message-ID: <0392D5EB-21FF-4BE4-9FAC-A4F7546C88D3@gmail.com> (raw)
In-Reply-To: <8598df-508d-fa22-5866-35423256b1b3@appl-ecosys.com>
References: <deee7dc-8e5e-cbba-aa3-2141e5d15c6a@appl-ecosys.com>
	<CANzqJaBQYcLc=aThm52En4EY+sPvQy6gTLx+ekiA4wuJjMJFKw@mail.gmail.com>
	<8598df-508d-fa22-5866-35423256b1b3@appl-ecosys.com>



> On 14 Sep 2026, at 23:44, Rich Shepard <rshepard@appl-ecosys.com> wrote:
> 
> On Mon, 14 Sep 2026, Ron Johnson wrote:
> 
>> Yes.  Note, though, that a single .sql file is the *slow* way to
>> export/import a database, especially if it's of any size.
> 
> Ron,
> 
> My databases are small and I'll transfer them one-at-a-time rather than the
> whole custer itself.

Rich,

Just a little heads-up:

If you’re dumping one database at a time, that doesn’t include any of the database roles or users you may have added. Roles (and users) are stored with the cluster, not per database. 

That’s where the below mentioned `pg_dumpall --globals-only` feature comes into play. You don’t need the parallel stuff, but the globals bit could be important.

With the rest cut out, that leaves:

> 
>> Current system:
>> cd /path/to/backups
>> pg_dumpall --globals-only > globals_127.sql

...

>> New system:
>> cd /path/to/backups
>> psql -af globals_127.sql

Regards,

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.





view thread (13+ messages)  latest in thread

Message-ID: <0392D5EB-21FF-4BE4-9FAC-A4F7546C88D3@gmail.com>
Permalink:  ../0392D5EB-21FF-4BE4-9FAC-A4F7546C88D3@gmail.com/
Also on:    postgresql.org/message-id/0392D5EB-21FF-4BE4-9FAC-A4F7546C88D3@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 using the --to and --cc options:
  reply via email

  To: pgsql-general@postgresql.org
  Cc: haramrae@gmail.com, rshepard@appl-ecosys.com
  Subject: Re: Upgrading 6 versions between 2 systems
  In-Reply-To: <0392D5EB-21FF-4BE4-9FAC-A4F7546C88D3@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