From: Ron Johnson <ron.l.johnson@cox.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Version upgrade: is restoring the postgres database needed?
Date: Thu, 1 Mar 2018 10:15:42 -0600
Message-ID: <9636317b-d071-e830-af31-c532f9572aa4@cox.net> (raw)
In-Reply-To: <Genn1x04V1DF5NZ01enpSs>
References: <30fe4b25-14b1-4408-c3bf-f40c2299465f@cox.net>
<Genn1x04V1DF5NZ01enpSs>
On 03/01/2018 08:46 AM, Melvin Davidson wrote:
>
>
> On Thu, Mar 1, 2018 at 5:24 AM, Ron Johnson <ron.l.johnson@cox.net
> <mailto:ron.l.johnson@cox.net>> wrote:
>
>
> Or do we just apply the globals.sql created by "pg_dumpall
> --globals-only"?
>
> (We're upgrading by restoring all databases on a new server, that,
> naturally, has it's own new postgres, template0 and template1 databases.)
>
>
> >is restoring the postgres database needed?
>
> That would depend on how you did the dump. If you did a_complete
> pg_dumpall (did not use -g or any other limiting flags), then all roles
> and databases are contained
> in the output file created. NOTE: restoring from the dumped file will
> require rebuilding all indexes, because indexes are not dumped.
No, I do:
$ pg_dump -Fc PROD > PROD.pgdump
$ pg_dump --globals-only postgres > globals.sql
$ pg_dump -Fc postgres > postgres.pgdump
--
Angular momentum makes the world go 'round.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ron.l.johnson@cox.net
Subject: Re: Version upgrade: is restoring the postgres database needed?
In-Reply-To: <9636317b-d071-e830-af31-c532f9572aa4@cox.net>
References: <30fe4b25-14b1-4408-c3bf-f40c2299465f@cox.net> <Genn1x04V1DF5NZ01enpSs> <9636317b-d071-e830-af31-c532f9572aa4@cox.net>
* 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