Re: Question about cost-calculation

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Question about cost-calculation
Date: 2008-06-02 14:06:45
Message-ID: 20080602140645.GG25294@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

am Mon, dem 02.06.2008, um 9:57:17 -0400 mailte Tom Lane folgendes:
> "A. Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> writes:
> > i expected for a 1000 row test-table a cost per function of 2.5
> > (cpu_operator_cost = 0.0025), but i got 5.
>
> What's the data type of "i"? I suspect you really have two function
> calls in that expression: a type coercion function and cos() itself.

Tom, many thanks for the enlightenment, you are right. Data typ of "i"
was int, if i use real than i got the expected costs. Great ;-)

Thanks, Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Teodor Sigaev 2008-06-02 14:10:21 Re: [GENERAL] Fragments in tsearch2 headline
Previous Message Tom Lane 2008-06-02 13:57:17 Re: Question about cost-calculation