Re: Precomputed constants?

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: B?sz?rm?nyi Zolt?n <zboszor(at)dunaweb(dot)hu>
Cc: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Precomputed constants?
Date: 2006-06-14 15:18:04
Message-ID: 20060614151804.GB34196@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, Jun 14, 2006 at 01:30:10PM +0200, B?sz?rm?nyi Zolt?n wrote:
> Replacing random() with a true constant gives me index scan
> even if it's hidden inside other function calls. E.g.:

The database has no choice but to compute random() for every row; it's
marked VOLATILE.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Tom Lane 2006-06-14 15:51:47 Re: Performance of pg_dump on PGSQL 8.0
Previous Message Jim C. Nasby 2006-06-14 15:16:39 Re: how to partition disks