>>> On Wed, Oct 24, 2007 at 7:15 AM, in message
<471F3752.8070205@developers.zlutazimnice.cz>, Honza Novak
<kacerr@developers.zlutazimnice.cz> wrote:
> But sometimes (i don't know exactly for what reason) some queries gets
> stuck (mostly they are inserts or updates, but realy simple) and
> postgres is unable to answer in time
In addition to the points made by others, there is a chance that a
contributing factor is the tendency of PostgreSQL (prior to the
upcoming 8.3 release) to hold onto dirty pages for as long as
possible and throw them all at the disk drives in at checkpoint
time. In some such cases the advice from previous emails may not
be enough -- you may have to use very aggressive background writer
settings, a smaller shared buffers setting, and/or reduce or
eliminate the OS write delays.
If you find this to be your problem, you may want to be an early
adopter of the 8.3 release, once it is out.
-Kevin