Same stament sometime fast, something slow - Mailing list pgsql-performance

From Fernando Mertins
Subject Same stament sometime fast, something slow
Date
Msg-id AANLkTinnMdESL8mycy6P6NWDrYPABLns0_v3Ct9Z-6Zj@mail.gmail.com
Whole thread Raw
Responses Re: Same stament sometime fast, something slow
List pgsql-performance
Hi there, this is my first post.

I have a PostgreSQL 8.3.6, compiled by Visual C++ build 1400 running on Windows with virtual machine, 2 GB ram, and configured the postgresql.conf file to log statements duration >= 500 ms.

And I have this query/log entry:
2011-01-03 23:06:29 BRT LOG:  duration: 2843.000 ms  statement: SELECT DESCRICAO FROM CURSO WHERE CODCURSO = 2

My question is, this same query executes many times a day and many times fast/normal, but why in some cases its run slowly? Especialy because the "CODCURSO" column is PK and this table has only 3 registers (tiny table).

Thank you in advance!
Fernando

pgsql-performance by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: Question: BlockSize > 8192 with FusionIO
Next
From: "Kevin Grittner"
Date:
Subject: Re: Same stament sometime fast, something slow