mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
SQL-language functions are now callable in ordinary fmgr contexts ...
for example, an SQL function can be used in a functional index. (I make no promises about speed, but it'll work ;-).) Clean up and simplify handling of functions returning sets.
This commit is contained in:
@ -1,24 +1,21 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* functions.h
|
||||
*
|
||||
* Declarations for execution of SQL-language functions.
|
||||
*
|
||||
*
|
||||
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: functions.h,v 1.13 2000/08/08 15:42:39 tgl Exp $
|
||||
* $Id: functions.h,v 1.14 2000/08/24 03:29:10 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef FUNCTIONS_H
|
||||
#define FUNCTIONS_H
|
||||
|
||||
#include "nodes/parsenodes.h"
|
||||
#include "utils/syscache.h"
|
||||
#include "fmgr.h"
|
||||
|
||||
extern Datum postquel_function(FunctionCallInfo fcinfo,
|
||||
FunctionCachePtr fcache,
|
||||
bool *isDone);
|
||||
extern Datum fmgr_sql(PG_FUNCTION_ARGS);
|
||||
|
||||
#endif /* FUNCTIONS_H */
|
||||
|
Reference in New Issue
Block a user