summaryrefslogtreecommitdiff
path: root/src/include/funcapi.h
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright for 2006. Update scripts.Bruce Momjian2006-03-051-2/+2
|
* Move plpgsql's fetchArgInfo() into funcapi.c, and rename toTom Lane2005-12-281-3/+7
| | | | | | | | get_func_arg_info() for consistency with other names there. This code will probably be useful to other PLs when they start to support OUT parameters, so better to have it in the main backend. Also, fix plpgsql validator to detect bogus OUT parameters even when check_function_bodies is off.
* Re-run pgindent, fixing a problem where comment lines after a blankBruce Momjian2005-11-221-11/+11
| | | | | | | | | comment line where output as too long, and update typedefs for /lib directory. Also fix case where identifiers were used as variable names in the backend, but as typedefs in ecpg (favor the backend for indenting). Backpatch to 8.1.X.
* Standard pgindent run for 8.1.Bruce Momjian2005-10-151-46/+44
|
* When a function not returning RECORD has a single OUT parameter, useTom Lane2005-10-061-1/+3
| | | | | | | | the parameter's name (if any) as the default column name for SELECT FROM the function, rather than the function name as previously. I still think this is a bad idea, but I lost the argument. Force decompilation of function RTEs to specify full aliases always, to reduce the odds of this decision breaking dumped views.
* Document get_call_result_type() and friends; mark TypeGetTupleDesc()Tom Lane2005-05-301-6/+5
| | | | | | and RelationNameGetTupleDesc() as deprecated; remove uses of the latter in the contrib library. Along the way, clean up crosstab() code and documentation a little.
* plpgsql does OUT parameters, as per my proposal a few weeks ago.Tom Lane2005-04-051-1/+5
|
* First phase of OUT-parameters project. We can now define and use SQLTom Lane2005-03-311-3/+52
| | | | | functions with OUT parameters. The various PLs still need work, as does pg_dump. Rudimentary docs and regression tests included.
* Update copyrights that were missed.Bruce Momjian2005-01-011-2/+2
|
* Pgindent run for 8.0.Bruce Momjian2004-08-291-8/+9
|
* Update copyright to 2004.Bruce Momjian2004-08-291-2/+2
|
* Infrastructure for I/O of composite types: arrange for the I/O routinesTom Lane2004-06-061-3/+3
| | | | | | | | | | of a composite type to get that type's OID as their second parameter, in place of typelem which is useless. The actual changes are mostly centralized in getTypeInputInfo and siblings, but I had to fix a few places that were fetching pg_type.typelem for themselves instead of using the lsyscache.c routines. Also, I renamed all the related variables from 'typelem' to 'typioparam' to discourage people from assuming that they necessarily contain array element types.
* Replace TupleTableSlot convention for whole-row variables and functionTom Lane2004-04-011-29/+42
| | | | | | | | results with tuples as ordinary varlena Datums. This commit does not in itself do much for us, except eliminate the horrid memory leak associated with evaluation of whole-row variables. However, it lays the groundwork for allowing composite types as table columns, and perhaps some other useful features as well. Per my proposal of a few days ago.
* make sure the $Id tags are converted to $PostgreSQL as well ...PostgreSQL Daemon2003-11-291-1/+1
|
* Fix some copyright notices that weren't updated. Improve copyright toolTom Lane2003-08-041-2/+2
| | | | so it won't miss 'em again.
* pgindent run.Bruce Momjian2002-09-041-55/+54
|
* Fix for breakage of C-coded SRFs, from Joe Conway.Tom Lane2002-08-301-2/+6
|
* Adjust nodeFunctionscan.c to reset transient memory context between callsTom Lane2002-08-291-8/+14
| | | | | | | to the table function, thus preventing memory leakage accumulation across calls. This means that SRFs need to be careful to distinguish permanent and local storage; adjust code and documentation accordingly. Patch by Joe Conway, very minor tweaks by Tom Lane.
* Code review for standalone composite types, query-specified compositeTom Lane2002-08-291-32/+23
| | | | | types, SRFs. Not happy with memory management yet, but I'll commit these other changes.
* Here are two patches. The guc_and_tablefunc patch addresses the twoBruce Momjian2002-07-301-0/+2
| | | | | | | | | | | | | | | | 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
* Here is a patch for the Table Function API. It fixes a bug found by NeilBruce Momjian2002-07-181-15/+48
| | | | | | | | Conway (BuildTupleFromCStrings sets NULL for pass-by-value types when intended value is 0). It also implements some other improvements suggested by Neil. Joe Conway
* uint -> uint32, portability.Bruce Momjian2002-06-221-2/+2
|
* Add another missing SRF file.Bruce Momjian2002-06-201-0/+197