Re: transformations between types and languages - Mailing list pgsql-hackers

From Tom Lane
Subject Re: transformations between types and languages
Date
Msg-id 3807.1337625451@sss.pgh.pa.us
Whole thread Raw
In response to Re: transformations between types and languages  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I wrote:
> Can we use something else for the magic type here?  Or find a way to
> positively forbid such functions from being called from the SQL level?

When I wrote that I was wondering if we'd need a new pg_proc column,
"prodontcallfromsql" or some such.  But on further reflection it seems
like it might be sufficient to just hack the parser to forbid any
user-level attempt to call a function that returns internal.  The other
side of the coin, functions that take but don't return internal, would
be protected by means of the fact that there'd be no way to construct
matching argument values.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: heap metapages
Next
From: Andrew Dunstan
Date:
Subject: Re: [BUGS] 9.2beta1 regression: pg_restore --data-only does not set sequence values any more