From 5bb2300b59b74cdc7c8e3f0bf3c8d31c27657670 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 20 Nov 2000 20:36:57 +0000 Subject: 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. --- contrib/noupdate/noup.c | 2 ++ contrib/noupdate/noup.sql.in | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'contrib/noupdate') diff --git a/contrib/noupdate/noup.c b/contrib/noupdate/noup.c index 5035e127be8..af857c41f6e 100644 --- a/contrib/noupdate/noup.c +++ b/contrib/noupdate/noup.c @@ -16,6 +16,8 @@ extern Datum noup(PG_FUNCTION_ARGS); * EXECUTE PROCEDURE noup ('col'). */ +PG_FUNCTION_INFO_V1(noup); + Datum noup(PG_FUNCTION_ARGS) { diff --git a/contrib/noupdate/noup.sql.in b/contrib/noupdate/noup.sql.in index cc1e6fa146f..abf92837d1d 100644 --- a/contrib/noupdate/noup.sql.in +++ b/contrib/noupdate/noup.sql.in @@ -3,5 +3,4 @@ DROP FUNCTION noup (); CREATE FUNCTION noup () RETURNS opaque AS 'MODULE_PATHNAME' - LANGUAGE 'newC' -; + LANGUAGE 'C'; -- cgit v1.2.3