Skip site navigation (1) Skip section navigation (2)

Re: Planner create a slow plan without an available index

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Bruno Wolff III <bruno(at)wolff(dot)to>,Ben-Nes Yonatan <da(at)canaan(dot)co(dot)il>, 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 04:04:02
Message-ID: 20050831040402.GC30877@surnet.cl (view raw or flat)
Thread:
Lists: pgsql-general
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.

-- 
Alvaro Herrera <alvherre[]alvh.no-ip.org>      Architect, www.EnterpriseDB.com
"I'm always right, but sometimes I'm more right than other times."
                                                  (Linus Torvalds)

In response to

Responses

pgsql-general by date

Next:From: Michael FuhrDate: 2005-08-31 04:28:36
Subject: Re: Help with SPI...
Previous:From: Chris TraversDate: 2005-08-31 04:00:36
Subject: Re: Php abstraction layers

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group