pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Huxton <dev@archonet.com>
Cc: alvarezp@alvarezp.ods.org
Cc: pgsql-performance@postgresql.org
Subject: Re: Seq scan on zero-parameters function
Date: Fri, 06 Feb 2004 09:55:28 -0500
Message-ID: <29560.1076079328@sss.pgh.pa.us> (raw)
In-Reply-To: <200402060850.50818.dev@archonet.com>
References: <4207.192.168.0.64.1076051944.squirrel@alvarezp.ods.org>
	<200402060850.50818.dev@archonet.com>

Richard Huxton <dev@archonet.com> writes:
> It's not entirely clear to me why this form is different from the other form 
> though.

The code that checks for expressions containing unstable functions
doesn't look inside sub-selects.  Arguably this is a bug, but people
were relying on that behavior way back before we had these nice
STABLE/IMMUTABLE tags for functions.  I'm hesitant to change it for
fear of breaking people's apps.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <29560.1076079328@sss.pgh.pa.us>
Permalink:  ../29560.1076079328@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29560.1076079328@sss.pgh.pa.us

 · 

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dev@archonet.com, alvarezp@alvarezp.ods.org, pgsql-performance@postgresql.org
  Subject: Re: Seq scan on zero-parameters function
  In-Reply-To: <29560.1076079328@sss.pgh.pa.us>

* 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