Re: Are extensions downgrade-safe?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Pang <robertpang(at)google(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Are extensions downgrade-safe?
Date: 2019-08-13 19:23:01
Message-ID: 13169.1565724181@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Robert Pang <robertpang(at)google(dot)com> writes:
> In PostgreSQL, there are times where a new version of an extension is
> included in a minor-version upgrade. If I do a minor-version upgrade of my
> PG database, upgrade the version of the extension and then have a need to
> revert (downgrade) to the old PG minor version, what should I do with the
> extension?

It'd really depend on what the particular extension upgrade script did.
A lot of the time you wouldn't have any issue, but there are probably
cases where reversing the effect of the upgrade script would be advisable.

We don't prepare downgrade scripts for the contrib modules; the question
comes up so seldom that it doesn't seem worth the maintenance effort.
But you could likely make one by studying the upgrade script and reversing
whatever it did.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Luca Ferrari 2019-08-14 07:32:56 Re: Question on pgwatch
Previous Message Robert Pang 2019-08-13 19:01:12 Are extensions downgrade-safe?