Re: plpython function problem workaround

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Sim Zacks <sim(at)compulab(dot)co(dot)il>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: plpython function problem workaround
Date: 2005-03-14 14:29:37
Message-ID: 20050314142937.GA21261@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shachar Shemesh 2005-03-14 14:44:25 Re: skip weekends: revisited
Previous Message Michael Fuhr 2005-03-14 14:16:29 Re: free space map settings