From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Language-specific initialization actions |
Date: | 2002-05-20 19:11:28 |
Message-ID: | Pine.LNX.4.44.0205191732290.4003-100000@localhost.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
In ProcedureCreate() (backend/catalog/pg_proc.c) there are special cases
for the built-in languages that check whether the to-be-created function
has a valid body. ISTM that we could extend that for user-defined
functions, as follows.
When creating a language, the user can optionally register a "check"
function for the language, whose responsibility is to check the supplied
function body for correctness and return a Boolean result. This function
would be executed at the time the function is created.
For example, for PL/Perl, the check function could execute the equivalent
of 'perl -c', or if we have a Java language in the future it could check
whether certain classes are loadable.
Comments?
--
Peter Eisentraut peter_e(at)gmx(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2002-05-20 19:12:57 | Use of /etc/services? |
Previous Message | Bear Giles | 2002-05-20 18:29:54 | First cut at mkcert |