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/lo/lo.c | 4 +++- contrib/lo/lo.sql.in | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'contrib/lo') diff --git a/contrib/lo/lo.c b/contrib/lo/lo.c index 386c2c2d2f..5de00ad5ca 100644 --- a/contrib/lo/lo.c +++ b/contrib/lo/lo.c @@ -1,7 +1,7 @@ /* * PostgreSQL type definitions for managed LargeObjects. * - * $Id: lo.c,v 1.4 2000/06/09 01:10:58 tgl Exp $ + * $Id: lo.c,v 1.5 2000/11/20 20:36:55 tgl Exp $ * */ @@ -140,6 +140,8 @@ lo(Oid oid) /* * This handles the trigger that protects us from orphaned large objects */ +PG_FUNCTION_INFO_V1(lo_manage); + Datum lo_manage(PG_FUNCTION_ARGS) { diff --git a/contrib/lo/lo.sql.in b/contrib/lo/lo.sql.in index 4aa75a60fe..9b340b196f 100644 --- a/contrib/lo/lo.sql.in +++ b/contrib/lo/lo.sql.in @@ -1,7 +1,7 @@ -- -- PostgreSQL code for LargeObjects -- --- $Id: lo.sql.in,v 1.4 2000/06/19 13:53:42 momjian Exp $ +-- $Id: lo.sql.in,v 1.5 2000/11/20 20:36:55 tgl Exp $ -- -- -- Create the data type @@ -44,7 +44,7 @@ create function lo(oid) create function lo_manage() returns opaque as 'MODULE_PATHNAME' - language 'newC'; + language 'C'; -- This allows us to map lo to oid -- -- cgit v1.2.1