summaryrefslogtreecommitdiff
path: root/src/include/funcapi.h
diff options
context:
space:
mode:
authorTom Lane2005-10-06 19:51:16 +0000
committerTom Lane2005-10-06 19:51:16 +0000
commit9ea14ef56ab8b7d22a4148c4e6765a7874d968a4 (patch)
treef6005a6fb3a7fd76101c94c6951fbc814eb0f161 /src/include/funcapi.h
parentfa63749d2177c3bf700f10a3d297954328ddf3bf (diff)
When a function not returning RECORD has a single OUT parameter, use
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.
Diffstat (limited to 'src/include/funcapi.h')
-rw-r--r--src/include/funcapi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/funcapi.h b/src/include/funcapi.h
index 8acbf3aa3b..ddeec2930f 100644
--- a/src/include/funcapi.h
+++ b/src/include/funcapi.h
@@ -9,7 +9,7 @@
*
* Copyright (c) 2002-2005, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/funcapi.h,v 1.18 2005/05/30 23:09:07 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/funcapi.h,v 1.19 2005/10/06 19:51:15 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -167,6 +167,8 @@ extern TypeFuncClass get_func_result_type(Oid functionId,
Oid *resultTypeId,
TupleDesc *resultTupleDesc);
+extern char *get_func_result_name(Oid functionId);
+
extern bool resolve_polymorphic_argtypes(int numargs, Oid *argtypes,
char *argmodes,
Node *call_expr);