On Mon, Mar 14, 2005 at 04:08:09PM +0200, Sim Zacks wrote:
> I checked the archives for any discussion on the Validator and there wasn't
> anything specifically discussing it.
> I really didn't find a lot of information about the Validators either, for
> example where did you see that a validator function gets the language oid
> passed in?
The validator is passed the function's OID, not the language's OID.
See the documentation for CREATE LANGUAGE, as well as the "Procedural
Languages" chapter:
http://www.postgresql.org/docs/8.0/interactive/sql-createlanguage.htmlhttp://www.postgresql.org/docs/8.0/interactive/xplang.html
Note that my idea to use the validator function was just a brainstorm,
not thoroughly tested or thought out. Maybe one of the developers
will comment about the wisdom of (ab)using it the way I suggested.
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/