Re: ERROR: canceling statement due to statement timeout

From: Tim <tavspam(at)gmail(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: ERROR: canceling statement due to statement timeout
Date: 2010-07-12 16:56:17
Message-ID: AANLkTiltkxPBo3yPuHQYXW4YAKI9u96ZDCG4niv8wlo8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 6 July 2010 16:36, Vick Khera <vivek(at)khera(dot)org> wrote:
> On Fri, Jul 2, 2010 at 12:22 PM, Tim <tavspam(at)gmail(dot)com> wrote:
>> I've had a website up for a couple of months and it's starting to get
>> these db timeouts as traffic has increased to say 1k pageviews a day.
>>
>
> Are you using any two-phase commit (ie, prepared transactions?)
>
> We find that if you try to insert data that will conflict with data
> pending in a 2PC, you get a statement timeout immediately.

I haven't setup anything like that . But geodjango might be doing
things like that in the background.

I'll get some queries together and post them here.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Josip Rodin 2010-07-12 17:15:08 Re: simple functions, huge overhead, no cache
Previous Message Merlin Moncure 2010-07-12 16:15:16 Re: getting the last N tuples of a query