pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Marcelo Lacerda <marceloslacerda@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Clarification on the release notes of postgresql 12 regarding pg_upgrade
Date: Fri, 04 Oct 2019 16:06:33 +0200
Message-ID: <7c09fb78bdfe7bb34bfa21c1807262613ef49a3b.camel@cybertec.at> (raw)
In-Reply-To: <CAPmRTtM5S-uc20MHU2PsMkQDwR0xjULQBuAsMzN1WDBw0aePbg@mail.gmail.com>
References: <CAPmRTtM5S-uc20MHU2PsMkQDwR0xjULQBuAsMzN1WDBw0aePbg@mail.gmail.com>
On Fri, 2019-10-04 at 10:00 -0300, Marcelo Lacerda wrote:
> There are a few instances where the release notes seem to indicate
> that the administrator should use pg_dump to upgrade a database so
> that improvements on btree can be available.
>
> Here are they:
>
> 1.
>
> >In new btree indexes, the maximum index entry length is reduced by
> eight bytes, to improve handling of duplicate entries (Peter
> Geoghegan)
> > This means that a REINDEX operation on an index pg_upgrade'd from a
> previous release could potentially fail.
>
>
> 2.
> >Improve performance and space utilization of btree indexes with many
> duplicates (Peter Geoghegan, Heikki Linnakangas)
> >...
> >Indexes pg_upgrade'd from previous releases will not have these
> benefits.
>
> 3.
> >Allow multi-column btree indexes to be smaller (Peter Geoghegan,
> Heikki Linnakangas)
> >...
> >Indexes pg_upgrade'd from previous releases will not have these
> benefits.
>
>
> My questions are:
>
> 1. Is this a current limitation of pg_upgrade that will be dealt
> afterwards?
>
> 2. Are we going to see more of such cases were pg_upgrade leaves the
> database incompatible with newer features.
>
> 3. What's the recommendation for administrators with databases that
> are too large to be upgraded with pg_dump?
pg_upgrade doesn't touch the index data, so it cannot rewrite indexes
to take advantage of these improvements.
There is no incompatibility involved.
You can always REINDEX some indexes later.
Now that we have REINDEX CONCURRENTLY, it shouldn't hurt as much.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
view thread (6+ messages) latest in thread
Message-ID: <7c09fb78bdfe7bb34bfa21c1807262613ef49a3b.camel@cybertec.at> Permalink: ../7c09fb78bdfe7bb34bfa21c1807262613ef49a3b.camel@cybertec.at/ Also on: postgresql.org/message-id/7c09fb78bdfe7bb34bfa21c1807262613ef49a3b.camel@cybertec.at ·
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 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: laurenz.albe@cybertec.at, marceloslacerda@gmail.com Subject: Re: Clarification on the release notes of postgresql 12 regarding pg_upgrade In-Reply-To: <7c09fb78bdfe7bb34bfa21c1807262613ef49a3b.camel@cybertec.at> References: <CAPmRTtM5S-uc20MHU2PsMkQDwR0xjULQBuAsMzN1WDBw0aePbg@mail.gmail.com> <7c09fb78bdfe7bb34bfa21c1807262613ef49a3b.camel@cybertec.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