Re: CREATE CAST requires immutable cast function? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: CREATE CAST requires immutable cast function?
Date
Msg-id Pine.LNX.4.44.0209031900390.1157-100000@localhost.localdomain
Whole thread Raw
In response to CREATE CAST requires immutable cast function?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: CREATE CAST requires immutable cast function?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane writes:

> Perhaps there's a case for prohibiting volatile casts (as opposed to
> stable ones), but I don't really see it.  I'd prefer to just remove
> this restriction.  Comments?

I'm not wedded to it, I just modelled it after the SQL standard, but
evidently the volatility levels are different in detail.  I would disallow
volatile casts in any case.  There ought to be a minimal behavioral
contract between creators and users of types.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: Memory management question
Next
From: Bruce Momjian
Date:
Subject: Re: Docs for v7.3 ...