Re: Performance degrades until dump/restore

From: Chris <bajasands(at)gmail(dot)com>
To: Andy Colson <andy(at)squeakycode(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Performance degrades until dump/restore
Date: 2012-04-19 17:02:31
Message-ID: CAMv1wqcF5WtQcFWBJfbi2+G6_5D_5UDxQrx8XAEtxLMxfcfLFA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Andy,
Thanks for your reply. I don't know the answers to your questions off the
top of my head, so you have given me some things to look into (open
transactions, memory swap, etc).
Now I am suspecting that memory is a partial culprit as I just discovered
that rebooting (hadn't had the opportunity to do that) also seems to boost
query performance to a lesser degree. I'm going to take a hard look at that.

It will take me several days to come up with an "explain analyze" when it's
fast and when it's slow, so I'll come back with that when I have it ready
if I had not resolved the issue by then. Good idea.

>
> Can you post an "explain analyze" when its fast, and then again when its
> slow?
>
> Are you leaving transactions open? (does "select * from pg_stat_activity"
> show any "idle in transaction"?)
>
> Does memory usage increase during the week so it starts using swap?
>
> -Andy
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris 2012-04-19 17:04:33 Re: Performance degrades until dump/restore
Previous Message Jen 2012-04-19 16:46:45 PostgreSQL 9.1 Hot Backup Error: the database system is starting up