From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: 11 -> 12 upgrade on Debian Ubuntu
Date: Thu, 7 Nov 2019 17:14:01 +0100
Message-ID: <20191107161401.GA24371@hjp.at> (raw)
In-Reply-To: <20191107155937.GB7759@panix.com>
References: <20191107154558.GA7759@panix.com>
<70b351b8-fc6b-1895-9708-95a290c77864@aklaver.com>
<20191107155937.GB7759@panix.com>
On 2019-11-07 10:59:37 -0500, stan wrote:
> On Thu, Nov 07, 2019 at 07:52:14AM -0800, Adrian Klaver wrote:
> > On 11/7/19 7:45 AM, stan wrote:
> > > I am in the middle of a project, and it looks like version 12 is now what
> > > the Debian/Ubuntu package managers want to update to.
> >
> > This should be a dist-upgrade correct?
>
> Correct.
>
> > On a my Ubuntu instance that just installed the Postgres 12 version and
> > started it(also auto start in start.conf). This was just the template
> > databases and postgres db. No data was moved over from the 11 instance that
> > is running.
> >
> Thanks, that is helpful to know.
To migrate the data to the new database, run pg_upgradecluster. This is
a wrapper around pg_upgrade which knows about details of a standard
Debian/Ubuntu PostgreSQL installation (like directory layout, etc.), so
it should be simpler and safer than invoking pg_upgrade yourself (and
pg_upgrade is hidden in /usr/lib/postgresql/*/bin to prevent you from
invoking it accidentally).
hp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: hjp-pgsql@hjp.at
Subject: Re: 11 -> 12 upgrade on Debian Ubuntu
In-Reply-To: <20191107161401.GA24371@hjp.at>
References: <20191107154558.GA7759@panix.com> <70b351b8-fc6b-1895-9708-95a290c77864@aklaver.com> <20191107155937.GB7759@panix.com> <20191107161401.GA24371@hjp.at>
* 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