Re: Performance degrades until dump/restore - Mailing list pgsql-general

From Chris
Subject Re: Performance degrades until dump/restore
Date
Msg-id CAMv1wqcF5WtQcFWBJfbi2+G6_5D_5UDxQrx8XAEtxLMxfcfLFA@mail.gmail.com
Whole thread Raw
In response to Re: Performance degrades until dump/restore  (Andy Colson <andy@squeakycode.net>)
List 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

pgsql-general by date:

Previous
From: Jen
Date:
Subject: PostgreSQL 9.1 Hot Backup Error: the database system is starting up
Next
From: Chris
Date:
Subject: Re: Performance degrades until dump/restore