aboutsummaryrefslogtreecommitdiff
path: root/contrib/spi/refint.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-11-20 20:36:57 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-11-20 20:36:57 +0000
commit5bb2300b59b74cdc7c8e3f0bf3c8d31c27657670 (patch)
tree8a0e76a6742884477e5bb50639e9a7ab9ba42872 /contrib/spi/refint.c
parent99198ac6b8d2003949a02a148f4483e2f95e7dd4 (diff)
downloadpostgresql-5bb2300b59b74cdc7c8e3f0bf3c8d31c27657670.tar.gz
postgresql-5bb2300b59b74cdc7c8e3f0bf3c8d31c27657670.zip
Revise handling of oldstyle/newstyle functions per recent discussions
in pghackers list. Support for oldstyle internal functions is gone (no longer needed, since conversion is complete) and pg_language entry 'internal' now implies newstyle call convention. pg_language entry 'newC' is gone; both old and newstyle dynamically loaded C functions are now called language 'C'. A newstyle function must be identified by an associated info routine. See src/backend/utils/fmgr/README.
Diffstat (limited to 'contrib/spi/refint.c')
-rw-r--r--contrib/spi/refint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/spi/refint.c b/contrib/spi/refint.c
index 4bbe761573b..d7a8d73c8e1 100644
--- a/contrib/spi/refint.c
+++ b/contrib/spi/refint.c
@@ -36,6 +36,8 @@ static EPlan *find_plan(char *ident, EPlan ** eplan, int *nplans);
* check_primary_key ('Fkey1', 'Fkey2', 'Ptable', 'Pkey1', 'Pkey2').
*/
+PG_FUNCTION_INFO_V1(check_primary_key);
+
Datum
check_primary_key(PG_FUNCTION_ARGS)
{
@@ -216,6 +218,8 @@ check_primary_key(PG_FUNCTION_ARGS)
* 'Ftable1', 'Fkey11', 'Fkey12', 'Ftable2', 'Fkey21', 'Fkey22').
*/
+PG_FUNCTION_INFO_V1(check_foreign_key);
+
Datum
check_foreign_key(PG_FUNCTION_ARGS)
{