From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: pgsql-sql@postgresql.org
Subject: Re: immutable function calling stable function
Date: Wed, 21 Jul 2004 10:45:34 -0400
Message-ID: <8578.1090421134@sss.pgh.pa.us> (raw)
In-Reply-To: <1090418677.3239.23.camel@dicaprio.akademie1.de>
References: <1090418677.3239.23.camel@dicaprio.akademie1.de>
Markus Bertheau <twanger@bluetwanger.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
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, twanger@bluetwanger.de
Subject: Re: immutable function calling stable function
In-Reply-To: <8578.1090421134@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