Re: Minor point about contrib/xml2 functions "IMMUTABLE"

From: Neil Conway <neilc(at)samurai(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: John Gray <jgray(at)azuli(dot)co(dot)uk>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Minor point about contrib/xml2 functions "IMMUTABLE"
Date: 2005-10-13 04:06:24
Message-ID: 1129176384.8718.67.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2005-12-10 at 23:46 -0400, Bruce Momjian wrote:
> Agreed. I have changed them both to stable. I think xslt_process()
> should be stable because it is unlikely you would want a URL's contents
> to change inside a transaction

Why is it "unlikely"?

If a function's return value for a particular set of arguments could
change within a single table scan, the function is volatile -- ISTM
xslt_process() clearly falls within that definition.

-Neil

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-10-13 04:11:54 Re: pgsql: Do all accesses to shared buffer headers
Previous Message Bruce Momjian 2005-10-13 04:02:56 Darwin compile fixes