Re: plpython function problem workaround

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: plpython function problem workaround
Дата
Msg-id 20050314142937.GA21261@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: plpython function problem workaround  ("Sim Zacks" <sim@compulab.co.il>)
Список 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 по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: free space map settings
Следующее
От: Shachar Shemesh
Дата:
Сообщение: Re: skip weekends: revisited