mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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.
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
--
|
||||
|
Reference in New Issue
Block a user