pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PG10 upgrade issue
3+ messages / 2 participants
[nested] [flat]

* PG10 upgrade issue
@ 2019-06-02 23:10  Zahir Lalani <ZahirLalani@oliver.agency>
  0 siblings, 1 reply; 3+ messages in thread

From: Zahir Lalani @ 2019-06-02 23:10 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

Hello

We have done pg10 upgrades from 9.6 on all our environments successfully. We have an automation script that does this for us. One environment is a near replica of our production setup and all works fine.

We have now made 2 attempts at doing this on production - both ending up with rollback

The key issue we have is that all queries were incredibly slow. The PG 10 postmaster workers would all show 100% cpu, especially on the replicas. We even increased CPUs but that made no difference.

I can try and provide logs info etc, but hoping someone has a clue about this

Thx

Zahir

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: PG10 upgrade issue
@ 2019-06-02 23:18  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Zahir Lalani <ZahirLalani@oliver.agency>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2019-06-02 23:18 UTC (permalink / raw)
  To: Zahir Lalani <ZahirLalani@oliver.agency>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

Zahir Lalani <ZahirLalani@oliver.agency> writes:
> We have done pg10 upgrades from 9.6 on all our environments successfully. We have an automation script that does this for us. One environment is a near replica of our production setup and all works fine.

> We have now made 2 attempts at doing this on production - both ending up with rollback

> The key issue we have is that all queries were incredibly slow. The PG 10 postmaster workers would all show 100% cpu, especially on the replicas. We even increased CPUs but that made no difference.

Did you make sure to rebuild statistics (re-ANALYZE) after the upgrade?
pg_upgrade makes a script for that, but I don't believe it runs it for
you.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: PG10 upgrade issue
@ 2019-06-02 23:52  Zahir Lalani <ZahirLalani@oliver.agency>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Zahir Lalani @ 2019-06-02 23:52 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>

Ah no we did not!

Will give that a go next tim Tom

Thank you

Z

On 3 Jun 2019 00:18, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Zahir Lalani <ZahirLalani@oliver.agency> writes:
> We have done pg10 upgrades from 9.6 on all our environments successfully. We have an automation script that does this for us. One environment is a near replica of our production setup and all works fine.

> We have now made 2 attempts at doing this on production - both ending up with rollback

> The key issue we have is that all queries were incredibly slow. The PG 10 postmaster workers would all show 100% cpu, especially on the replicas. We even increased CPUs but that made no difference.

Did you make sure to rebuild statistics (re-ANALYZE) after the upgrade?
pg_upgrade makes a script for that, but I don't believe it runs it for
you.

                        regards, tom lane

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-06-02 23:52 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-06-02 23:10 PG10 upgrade issue Zahir Lalani <ZahirLalani@oliver.agency>
2019-06-02 23:18 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-06-02 23:52   ` Zahir Lalani <ZahirLalani@oliver.agency>

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