Re: Clarification on the release notes of postgresql 12 regarding pg_upgrade

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Josef Šimánek <josef(dot)simanek(at)gmail(dot)com>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Marcelo Lacerda <marceloslacerda(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Clarification on the release notes of postgresql 12 regarding pg_upgrade
Date: 2019-10-04 22:19:34
Message-ID: 20191004221934.GA29212@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 4, 2019 at 09:43:31AM -0700, Peter Geoghegan wrote:
> On Fri, Oct 4, 2019 at 9:09 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > > You can't REINDEX safely regarding that note.
> >
> > Actually running into that problem is quite unlikely; and if you did
> > hit it, it'd just mean that the REINDEX fails, not that you have any
> > urgent problem to fix. I'd encourage you to just go ahead and REINDEX,
> > if you have indexes that could benefit from the other changes.
>
> Right. It is hard to imagine an application that evolved to fully rely
> on the previous slightly higher limit, and cannot tolerate a reduction
> in the limit by only 8 bytes. The limit applies to a tuple *after*
> TOAST compression has been applied.

Right. Pg_upgrade is fast, but we don't want it limiting file format
changes that can improve Postgres. Allowing REINDEX to fix things is
the best of both worlds --- fast upgrades, and after some REINDEX-ing,
faster Postgres.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Luca Ferrari 2019-10-05 08:50:14 Re: Event Triggers and Dropping Objects
Previous Message Miles Elam 2019-10-04 20:38:18 Event Triggers and Dropping Objects