aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-07-30 16:20:03 +0000
committerBruce Momjian <bruce@momjian.us>2002-07-30 16:20:03 +0000
commit23a8b77d42463437f1dd52c601bcfeb858aef7b3 (patch)
treed090e865d1e804d12b9bc63afd8197a88ef402d1 /doc/src
parentceb438ed8c39bc647e0b0c33cf7d2d7ab2f21b2d (diff)
downloadpostgresql-23a8b77d42463437f1dd52c601bcfeb858aef7b3.tar.gz
postgresql-23a8b77d42463437f1dd52c601bcfeb858aef7b3.zip
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 'doc/src')
-rw-r--r--doc/src/sgml/xfunc.sgml10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml
index bb7f742f69f..91d1849d529 100644
--- a/doc/src/sgml/xfunc.sgml
+++ b/doc/src/sgml/xfunc.sgml
@@ -1,5 +1,5 @@
<!--
-$Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.53 2002/07/18 04:47:17 momjian Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/xfunc.sgml,v 1.54 2002/07/30 16:20:03 momjian Exp $
-->
<chapter id="xfunc">
@@ -1557,6 +1557,14 @@ HeapTuple BuildTupleFromCStrings(AttInMetadata *attinmeta, char **values)
</para>
<para>
+ In order to get an attribute "in" function and typelem value given the
+ typeid, use
+<programlisting>
+void get_type_metadata(Oid typeid, Oid *attinfuncid, Oid *attelem)
+</programlisting>
+ </para>
+
+ <para>
Finally, in order to return a tuple using the SRF portion of the API
(described below), the tuple must be converted into a Datum. Use
<programlisting>