pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: B?sz?rm?nyi Zolt?n <zboszor@dunaweb.hu>
Cc: Volkan YAZICI <yazicivo@ttnet.net.tr>
Cc: pgsql-performance@postgresql.org
Subject: Re: Precomputed constants?
Date: Wed, 14 Jun 2006 10:18:04 -0500
Message-ID: <20060614151804.GB34196@pervasive.com> (raw)
In-Reply-To: <3861.213.163.11.81.1150284610.squirrel@www.dunaweb.hu>
References: <3167.213.163.11.81.1150282434.squirrel@www.dunaweb.hu>
	<20060614110713.GA2277@alamut.tdm.local>
	<3861.213.163.11.81.1150284610.squirrel@www.dunaweb.hu>

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@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (8+ messages)  latest in thread

Message-ID: <20060614151804.GB34196@pervasive.com>
Permalink:  ../20060614151804.GB34196@pervasive.com/
Also on:    postgresql.org/message-id/20060614151804.GB34196@pervasive.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jnasby@pervasive.com, zboszor@dunaweb.hu, yazicivo@ttnet.net.tr
  Subject: Re: Precomputed constants?
  In-Reply-To: <20060614151804.GB34196@pervasive.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox