Re: Slow performance after restoring a dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Osborne <david(at)qcode(dot)co(dot)uk>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Slow performance after restoring a dump
Date: 2018-03-19 15:35:00
Message-ID: 31890.1521473700@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

David Osborne <david(at)qcode(dot)co(dot)uk> writes:
> Hi, I was wondering if someone could help us work out why this query is so
> slow.
> We've just dumped a database (Postgresql 9.1) and restored it to a new
> instance (AWS RDS 9.6) (via pg_dump, restored to psql)

The first question people will ask is did you re-ANALYZE the new
database? pg_dump doesn't take care of that for you, and auto-analyze
might not think it needs to process the smaller tables.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message David Osborne 2018-03-19 15:43:47 Re: Slow performance after restoring a dump
Previous Message David Osborne 2018-03-19 15:13:37 Slow performance after restoring a dump