Re: immutable function calling stable function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: immutable function calling stable function
Date: 2004-07-21 14:45:34
Message-ID: 8578.1090421134@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Markus Bertheau <twanger(at)bluetwanger(dot)de> writes:
> shouldn't it be illegal for an immutable function to call a stable one?

No, because that's the standard hack for getting around it when you wish
to call a stable function in what you know to be a "safe" way. If you
look in the archives you'll find cases where creating an immutable
wrapper function was the recommended solution to performance problems.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Geoff Richards 2004-07-21 14:49:50 MySQL-style "create temporary table foo select ..."
Previous Message Rod Taylor 2004-07-21 14:45:27 Re: date_format in postresql