mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Moved from backend/access to include/access
This commit is contained in:
43
src/include/access/funcindex.h
Normal file
43
src/include/access/funcindex.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* funcindex.h--
|
||||
*
|
||||
*
|
||||
*
|
||||
* Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: funcindex.h,v 1.1 1996/08/27 21:50:08 scrappy Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef _FUNC_INDEX_INCLUDED_
|
||||
#define _FUNC_INDEX_INCLUDED_
|
||||
|
||||
#include "postgres.h"
|
||||
|
||||
typedef struct {
|
||||
int nargs;
|
||||
Oid arglist[8];
|
||||
Oid procOid;
|
||||
NameData funcName;
|
||||
} FuncIndexInfo;
|
||||
|
||||
typedef FuncIndexInfo *FuncIndexInfoPtr;
|
||||
|
||||
/*
|
||||
* some marginally useful macro definitions
|
||||
*/
|
||||
/* #define FIgetname(FINFO) (&((FINFO)->funcName.data[0]))*/
|
||||
#define FIgetname(FINFO) (FINFO)->funcName.data
|
||||
#define FIgetnArgs(FINFO) (FINFO)->nargs
|
||||
#define FIgetProcOid(FINFO) (FINFO)->procOid
|
||||
#define FIgetArg(FINFO, argnum) (FINFO)->arglist[argnum]
|
||||
#define FIgetArglist(FINFO) (FINFO)->arglist
|
||||
|
||||
#define FIsetnArgs(FINFO, numargs) ((FINFO)->nargs = numargs)
|
||||
#define FIsetProcOid(FINFO, id) ((FINFO)->procOid = id)
|
||||
#define FIsetArg(FINFO, argnum, argtype) ((FINFO)->arglist[argnum] = argtype)
|
||||
|
||||
#define FIisFunctionalIndex(FINFO) (FINFO->procOid != InvalidOid)
|
||||
|
||||
#endif /* FUNCINDEX_H */
|
||||
Reference in New Issue
Block a user