Re: explain and explain analyze with functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: elein <elein(at)nextbus(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: explain and explain analyze with functions
Date: 2002-05-02 03:06:13
Message-ID: 4165.1020308773@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

elein <elein(at)nextbus(dot)com> writes:
> Explain and explain analyze do not seem to count any
> subqueries in functions called.

Functions are considered black boxes. Unless you have an unpublished
solution to the halting problem, I doubt we can do much better than that
for PL-language functions.

I believe there was once code in Postgres (Berkeley era) to try to be
intelligent about the costs of SQL-language functions. It's been dead
code for a long time though, and I'm not currently seeing a good
argument for reviving it. People don't seem to use SQL-language
functions all that much.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mark kirkwood 2002-05-02 04:17:47 On Distributions In 7.2.1
Previous Message Tom Lane 2002-05-02 02:40:46 Re: What popular, large commercial websites run