summaryrefslogtreecommitdiff
path: root/src/include/funcapi.h
diff options
context:
space:
mode:
authorBruce Momjian2002-07-30 16:20:03 +0000
committerBruce Momjian2002-07-30 16:20:03 +0000
commit23a8b77d42463437f1dd52c601bcfeb858aef7b3 (patch)
treed090e865d1e804d12b9bc63afd8197a88ef402d1 /src/include/funcapi.h
parentceb438ed8c39bc647e0b0c33cf7d2d7ab2f21b2d (diff)
Here are two patches. The guc_and_tablefunc patch addresses the two
changes mentioned above, and also adds a new function to the tablefunc API. The tablefunc API change adds the following function: * Oid foidGetTypeId(Oid foid) - Get a function's typeid given the * function Oid. Use this together with TypeGetTupleDesc() to get a * TupleDesc which is derived from the function's declared return type. In the next post I'll send the contrib/tablefunc patch, which illustrates the usage of this new function. Also attached is a doc patch for this change. The doc patch also adds a function that I failed to document previously. Joe Conway
Diffstat (limited to 'src/include/funcapi.h')
-rw-r--r--src/include/funcapi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/funcapi.h b/src/include/funcapi.h
index f00b93b865b..29414753820 100644
--- a/src/include/funcapi.h
+++ b/src/include/funcapi.h
@@ -139,6 +139,8 @@ typedef struct
* HeapTuple BuildTupleFromCStrings(AttInMetadata *attinmeta, char **values) -
* build a HeapTuple given user data in C string form. values is an array
* of C strings, one for each attribute of the return tuple.
+ * void get_type_metadata(Oid typeid, Oid *attinfuncid, Oid *attelem) - Get
+ * an attribute "in" function and typelem value given the typeid.
*
* Macro declarations:
* TupleGetDatum(TupleTableSlot *slot, HeapTuple tuple) - get a Datum