From 0f085f6e9df81140ee69f29f31f42b2824f0afed Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 29 Mar 2005 19:44:23 +0000 Subject: Add proallargtypes and proargmodes columns to pg_proc, as per my earlier proposal for OUT parameter support. The columns don't actually *do* anything yet, they are just left NULLs. But I thought I'd commit this part separately as a fairly pure example of the tasks needed when adding a column to pg_proc or one of the other core system tables. --- doc/src/sgml/bki.sgml | 3 ++- doc/src/sgml/catalogs.sgml | 40 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 39 insertions(+), 4 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/bki.sgml b/doc/src/sgml/bki.sgml index 867dd421fea..23fb02a8cfc 100644 --- a/doc/src/sgml/bki.sgml +++ b/doc/src/sgml/bki.sgml @@ -1,5 +1,5 @@ @@ -97,6 +97,7 @@ $PostgreSQL: pgsql/doc/src/sgml/bki.sgml,v 1.13 2005/01/05 23:42:03 tgl Exp $ oid, tid, xid, cid, int2vector, oidvector, _int4 (array), _text (array), + _oid (array), _char (array), _aclitem (array). Although it is possible to create tables containing columns of other types, this cannot be done until after pg_type has been created and filled with diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index 946dd53b349..11d774410d3 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -1,6 +1,6 @@ @@ -2855,7 +2855,39 @@ proargtypes oidvector pg_type.oid - An array with the data types of the function arguments + + An array with the data types of the function arguments. This includes + only input arguments (including INOUT arguments), and thus represents + the call signature of the function. + + + + + proallargtypes + oid[] + pg_type.oid + + An array with the data types of the function arguments. This includes + all arguments (including OUT and INOUT arguments); however, if all the + arguments are IN arguments, this field will be null. + Note that subscripting is 1-based, whereas for historical reasons + proargtypes is subscripted from 0. + + + + + proargmodes + "char"[] + + + An array with the modes of the function arguments, encoded as + i for IN arguments, + o for OUT arguments, + b for INOUT arguments. + If all the arguments are IN arguments, this field will be null. + Note that subscripts correspond to positions of + proallargtypes not proargtypes. + @@ -2865,7 +2897,9 @@ An array with the names of the function arguments. Arguments without a name are set to empty strings in the array. - If none of the arguments have a name, this field may be null. + If none of the arguments have a name, this field will be null. + Note that subscripts correspond to positions of + proallargtypes not proargtypes. -- cgit v1.2.3