diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2002-05-22 17:21:02 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2002-05-22 17:21:02 +0000 |
| commit | d60f10b0e74173653d17c09750a791afe6f56404 (patch) | |
| tree | 9803f14bc9ce71e3a056a447b6999847bb2a8dd6 /src/include/nodes/parsenodes.h | |
| parent | df9c8e1a39dc0502c62e164aa94e7e810bcd2009 (diff) | |
| download | postgresql-d60f10b0e74173653d17c09750a791afe6f56404.tar.gz | |
Add optional "validator" function to languages that can validate the
function body (and other properties) as a function in the language
is created. This generalizes ad hoc code that already existed for
the built-in languages.
The validation now happens after the pg_proc tuple of the new function
is created, so it is possible to define recursive SQL functions.
Add some regression test cases that cover bogus function definition
attempts.
Diffstat (limited to 'src/include/nodes/parsenodes.h')
| -rw-r--r-- | src/include/nodes/parsenodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index 3466e12598..f7ea60ac80 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parsenodes.h,v 1.178 2002/05/17 18:32:52 petere Exp $ + * $Id: parsenodes.h,v 1.179 2002/05/22 17:21:01 petere Exp $ * *------------------------------------------------------------------------- */ @@ -990,6 +990,7 @@ typedef struct CreatePLangStmt NodeTag type; char *plname; /* PL name */ List *plhandler; /* PL call handler function (qual. name) */ + List *plvalidator; /* optional validator function (qual. name) */ char *plcompiler; /* lancompiler text */ bool pltrusted; /* PL is trusted */ } CreatePLangStmt; |
