summaryrefslogtreecommitdiff
path: root/src/include/access/funcindex.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-08-27 21:50:29 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-08-27 21:50:29 +0000
commit5a8820efcd9ae853de8ae711412218c7059d3358 (patch)
treee571607fed769b3b6fd3e0bd99d1daac7d193ebe /src/include/access/funcindex.h
parent9247b29228c05e1e368c14d339fcbabeb27b426b (diff)
downloadpostgresql-5a8820efcd9ae853de8ae711412218c7059d3358.tar.gz
Moved from backend/access to include/access
Diffstat (limited to 'src/include/access/funcindex.h')
-rw-r--r--src/include/access/funcindex.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/include/access/funcindex.h b/src/include/access/funcindex.h
new file mode 100644
index 0000000000..fe22fabbdd
--- /dev/null
+++ b/src/include/access/funcindex.h
@@ -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 */