Re: AWS forcing PG upgrade from v9.6 a disaster

From: "Dean Gibson (DB Administrator)" <postgresql(at)mailpen(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: AWS forcing PG upgrade from v9.6 a disaster
Date: 2021-05-28 18:40:29
Message-ID: 88255b75-e7e3-b29c-0e75-f989ea320570@mailpen.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

On 2021-05-28 08:12, Adrian Klaver wrote:
> On 5/27/21 8:41 PM, Dean Gibson (DB Administrator) wrote:
>> I started to use PostgreSQL v7.3 in 2003 on my home Linux systems (4
>> at one point), gradually moving to v9.0 w/ replication in 2010.  In
>> 2017 I moved my 20GB database to AWS/RDS, gradually upgrading to
>> v9.6, & was entirely satisfied with the result.
>>
>> In March of this year, AWS announced that v9.6 was nearing end of
>> support, & AWS would forcibly upgrade everyone to v12 on January 22,
>> 2022, if users did not perform the upgrade earlier. My first attempt
>> was successful as far as the upgrade itself, but complex queries that
>> normally ran in a couple of seconds on v9.x, were taking minutes in v12.
>
> Did you run a plain
> ANALYZE(https://www.postgresql.org/docs/12/sql-analyze.html) on the
> tables in the new install?

After each upgrade (to 10, 11, 12, & 13), I did a "VACUUM FULL
ANALYZE".  On 10 through 12, it took about 45 minutes & significant CPU
activity, & temporarily doubled the size of the disk space required.  As
you know, that disk space is not shrinkable under AWS's RDS.  On v13, it
took 10 hours with limited CPU activity, & actually slightly less disk
space required.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2021-05-28 19:38:02 Re: AWS forcing PG upgrade from v9.6 a disaster
Previous Message Laura Smith 2021-05-28 17:56:45 Re: Modelling versioning in Postgres

Browse pgsql-performance by date

  From Date Subject
Next Message Dean Gibson (DB Administrator) 2021-05-28 18:48:28 AWS forcing PG upgrade from v9.6 a disaster
Previous Message Adrian Klaver 2021-05-28 15:12:52 Re: AWS forcing PG upgrade from v9.6 a disaster