Re: Question about cost-calculation - Mailing list pgsql-general

From Tom Lane
Subject Re: Question about cost-calculation
Date
Msg-id 17613.1212415037@sss.pgh.pa.us
Whole thread Raw
In response to Question about cost-calculation  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Responses Re: Question about cost-calculation  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-general
"A. Kretschmer" <andreas.kretschmer@schollglas.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.

            regards, tom lane

pgsql-general by date:

Previous
From: "Brian A. Seklecki"
Date:
Subject: Re: [Xen-users] SNMP AgentX subagent for Xen
Next
From: "A. Kretschmer"
Date:
Subject: Re: Question about cost-calculation