Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6C4D39F9F7F for ; Sun, 19 Nov 2006 00:05:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 76145-05 for ; Sun, 19 Nov 2006 00:05:12 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by postgresql.org (Postfix) with ESMTP id 0FB749F9ECC for ; Sun, 19 Nov 2006 00:05:10 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so2048760nfb for ; Sat, 18 Nov 2006 20:05:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=BTSkjLrQLC8bQcdEHq8pbYIDuzldn0C+5ZGgDTv2wOlOz9Suc2J3E8ezT6iQVhBRV40NyHM7s2HTdkn1sM44mkTm8+yVNrRPPRSx6KvapFOM58oIe3bbthRzJctU8Ubm+SgE3Lmnv+XXuVovyO6W3b3i1Cioxwkkyzc1pdf4uDk= Received: by 10.49.19.5 with SMTP id w5mr4164983nfi.1163909108301; Sat, 18 Nov 2006 20:05:08 -0800 (PST) Received: by 10.49.17.2 with HTTP; Sat, 18 Nov 2006 20:05:08 -0800 (PST) Message-ID: <9851130611182005l6cd70e1q7c3a9459fec90f9b@mail.gmail.com> Date: Sun, 19 Nov 2006 09:35:08 +0530 From: "rakesh kumar" To: pgsql-performance@postgresql.org Subject: Fwd: start up cost estimate In-Reply-To: <9851130611182001l32efca71u291fb19092b184@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_22689_17483242.1163909108255" References: <9851130611180133y3ca36219td95b555ac8f2ee71@mail.gmail.com> <38242de90611180627s76262418j1fb73bac61d30e3f@mail.gmail.com> <9851130611182001l32efca71u291fb19092b184@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/154 X-Sequence-Number: 21924 ------=_Part_22689_17483242.1163909108255 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline ---------- Forwarded message ---------- From: rakesh kumar Date: Nov 19, 2006 9:31 AM Subject: Re: [PERFORM] start up cost estimate To: Joshua Marsh Hi for suppose if I had a query , something like : select o_orderpriority from orders where o_totalprice < 156163 and exists ( select * from lineitem where l_orderkey = o_orderkey and l_extendedprice < 38570 ) what is the amount of cost of EXISTS SUBQUERY involved in estimate of totalcost . where l_orderkey is part of index of lineitem , and o_orderkey is primary key of orders table. Thanks . On 11/18/06, Joshua Marsh wrote: > > On 11/18/06, rakesh kumar < trakeshkumar@gmail.com> wrote: > > > > Hi , > > I wanted to know , how the start up cost is computed in > > postgresql . can u give me an example to illustrate the estimation of start > > up cost . > > thanku raa > > . > > > > It would be very helpful to have a lot more information. Some questions > that come to mind: > > Approximately how many records will you be storing? > How big do you think your biggest tables will be? > How frequently will your biggest tables be accessed (x/day, x/second, > x/week)? > Will those accesses be read only, or read/write? > How important is availability vs. cost? > Who is your favorite Irish folk singer? > > > ------=_Part_22689_17483242.1163909108255 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

---------- Forwarded message ----------
From: rakesh kumar <trakeshkumar@gmail.com>
Date: Nov 19,= 2006 9:31 AM
Subject: Re: [PERFORM] start up cost estimate
To: Joshua Marsh <<= a href=3D"mailto:icub3d@gmail.com">icub3d@gmail.com>

H= i
           &nb= sp;            =             &nb= sp;            = for suppose if I had a query , something like :
      
     =             &nb= sp;     
      &= nbsp;           &nbs= p;   select   o_orderpriority
   
        =             &nb= sp;    from       orders
&n= bsp;            = ;            &n= bsp;    
       =             &nb= sp;      where    o_totalprice < 156163   and exists
       &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;            (&n= bsp; select   * 
      &nb= sp;            =             &nb= sp;            =             &nb= sp;            =             &nb= sp;   
        &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;  from     lineitem
            = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;         
  =             &nb= sp;            =             &nb= sp;            =             &nb= sp;            =         where  l_orderkey =3D o_ord= erkey
            &nb= sp;            =             &nb= sp;            =             &nb= sp;            =        
    &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;    and l_extendedprice < 38570
            &nb= sp;            =             &nb= sp;            =             &nb= sp;            =          
  &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;      )       &nbs= p;            &= nbsp;   

what is the amount of  cost of EXISTS SUBQUERY  involved in estim= ate of totalcost .

 where l_orderkey is part of index of lineit= em  , and o_orderkey is primary key of orders table.
  &n= bsp;            = ;            &n= bsp;            = ;     Thanks .

   &n= bsp;            = ;            &n= bsp;

On 11/18/06, Joshua Marsh &l= t; icub3d@gmail.com> wrote:

On 11/18/06, rakesh kumar < trakeshkumar@gmail.com> wrote:
Hi ,
         I wanted to know , how the start up cost is computed in postgresql . can u give me an example to illustrate the estimation of start up cost .
            &nb= sp;            =             &nb= sp;            =             thanku raa .

It would be very helpful to have a lot = more information.  Some questions that come to mind:

Approximat= ely how many records will you be storing?
How big do you think your bigg= est tables will be?
How frequently will your biggest tables be accessed (x/day, x/second, x= /week)?
Will those accesses be read only, or read/write?
How importan= t is availability vs. cost?
Who is your favorite Irish folk singer?



------=_Part_22689_17483242.1163909108255--