Re: Planner create a slow plan without an available index

From: Ben-Nes Yonatan <da(at)canaan(dot)co(dot)il>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Bruno Wolff III <bruno(at)wolff(dot)to>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Planner create a slow plan without an available index
Date: 2005-08-31 07:19:05
Message-ID: 431559E9.3010309@canaan.co.il
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alvaro Herrera wrote:
> On Tue, Aug 30, 2005 at 10:39:57PM -0500, Bruno Wolff III wrote:
>
>>On Wed, Aug 31, 2005 at 01:27:30 +0200,
>> Ben-Nes Yonatan <da(at)canaan(dot)co(dot)il> wrote:
>>
>>>Now again im probably just paranoid but when I'm starting a transaction
>>>and in it im making more then 4 billions diffrent queries
>>>(select,insert,update,truncate...) and then im closing it, its counted
>>>as only one transaction right? (should I duck to avoid the manual? ;))
>>
>>I believe there is a limit on the number of queries in a transaction of
>>2 or 4 billion (though this may be just in functions).
>>
>>Ignoring subtransactions, all these queries count as just one transaction.
>>I am not sure how subtransactions are counted.
>
>
> If the subtransaction writes at least a tuple, it counts as another
> transaction. Else it doesn't count.
>

Oh crap I fear that now im in serious troubles....
Where can I read about this limitation? and beside that what if I count
the number of queries and every 900,000 or so I create a subtransaction
and continue my process with it, will that work or I'm just trying to be
a smart ass with the db?

As always thanks alot,
Ben-Nes Yonatan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ben-Nes Yonatan 2005-08-31 07:36:04 Re: Planner create a slow plan without an available index
Previous Message Hannes Dorbath 2005-08-31 07:17:48 Re: Php abstraction layers