Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x6Rub-000F4T-1g for pgsql-general@arkaria.postgresql.org; Tue, 15 Sep 2026 12:05:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x6Rua-001p48-1I for pgsql-general@arkaria.postgresql.org; Tue, 15 Sep 2026 12:05:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x6Rqw-001kp4-1k for pgsql-general@lists.postgresql.org; Tue, 15 Sep 2026 12:01:34 +0000 Received: from mail.appl-ecosys.com ([50.126.108.78]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x6Rqt-00000000ZBp-01Wp for pgsql-general@postgresql.org; Tue, 15 Sep 2026 12:01:34 +0000 Received: from salmo.appl-ecosys.com (salmo.appl-ecosys.com [192.168.55.1]) by mail.appl-ecosys.com (Postfix) with ESMTP id B7E482A14D6 for ; Tue, 15 Sep 2026 05:01:29 -0700 (PDT) Date: Tue, 15 Sep 2026 05:01:29 -0700 (PDT) From: Rich Shepard To: pgsql-general Subject: Re: Upgrading 6 versions between 2 systems In-Reply-To: <0392D5EB-21FF-4BE4-9FAC-A4F7546C88D3@gmail.com> Message-ID: References: <8598df-508d-fa22-5866-35423256b1b3@appl-ecosys.com> <0392D5EB-21FF-4BE4-9FAC-A4F7546C88D3@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 15 Sep 2026, Alban Hertroys wrote: > 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 Alban, I was not aware of this because in the past all version upgrades were on the same host. A valuable lesson. Thanks very much. Regards, Rich