Re: plpython function problem workaround - Mailing list pgsql-general

From Michael Fuhr
Subject Re: plpython function problem workaround
Date
Msg-id 20050314142937.GA21261@winnie.fuhr.org
Whole thread Raw
In response to Re: plpython function problem workaround  ("Sim Zacks" <sim@compulab.co.il>)
List pgsql-general
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.html
http://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/

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: free space map settings
Next
From: Shachar Shemesh
Date:
Subject: Re: skip weekends: revisited