forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
297 lines
31 KiB
HTML
297 lines
31 KiB
HTML
<a name="EN-US_TOPIC_0000001233563243"></a><a name="EN-US_TOPIC_0000001233563243"></a>
|
|
|
|
<h1 class="topictitle1">PG_PROC</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001233563243__a4bf52e1178e44910b907a872a98a2ee6"><strong id="EN-US_TOPIC_0000001233563243__b1328661155415">PG_PROC</strong> records information about functions or procedures.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233563243__t5f175eb400994d4fa7095975f1ba3424" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_PROC columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233563243__re9fc7d6b0c654eef8efa7bb7673ea6e9"><th align="left" class="cellrowborder" valign="top" width="25.77%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001233563243__ac765441f3bfb4cfea8063fd08d41a29b"><strong id="EN-US_TOPIC_0000001233563243__b84235270691445">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.5%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001233563243__ac97cd065029a45bdb356526769a26879">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60.73%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001233563243__a2d778ee616024e7284058178c0860b0b">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001233563243__r33fa0cc6ccfd486cb5f249158bf58dd4"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__ac69859fe37a54fedb631683c40ca716c">proname</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a2c281975a00945d69069d80416045f68">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a5d0884422cb943129055576b0534a19a">Name of the function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r482b2e22ca09463d8f35e66766d78b96"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a65f1970a769a420a955dff83753a32e6">pronamespace</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__abad1d9156ea14e62a0296aec1a13e11b">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a448b3102da0b4509a1945e6fa1307d5d">OID of the namespace that contains the function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r22f44d57ae8a443181f841122d8ee74a"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__ad209fa052f824c81ac8ca2585d749c38">proowner</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__ada007b007d5a4d3aac7cc1153e185ac4">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a16ed2ea4fbed43f8a2b914cd25523439">Owner of the function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r57ee92609f0346f2abcd9400ca07d743"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a4e6cf820faf94179aa0c8d17703892a4">prolang</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__aec7ebd840c0841bdad9c0776292476e8">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a8c3a6631da3e484b9c24da241acab664">Implementation language or call interface of the function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r9c1bc768ff9140afabf4fa1f3d23c3b2"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__ad45d3374c2f843d2a6b20da3d127f4fe">procost</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__ab5a32c3657574fc19a4e8518f19a0112">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__aa4510e5e416d440dae3171073fde62ff">Estimated execution cost</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r4beb4d9d666245e3b3572def57788fc7"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a4faa5326999f4e6495b795c80e5c303e">prorows</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a7037ee476c7e4e3bb801e7d97dfac9f6">real</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a344de74eca404375b805dd9458f82a92">Estimate number of result rows</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r298c6c1d84cc4d12b1040a0b1cc32883"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a481aa74c710a48bab32a39309ffcc1b4">provariadic</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a995758fddc344b4588f15bf0732c618f">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a9f61729207254c0ea06d583a9af513dd">Data type of parameter element</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r36780bbcf3f348ccb0b28201befb2d35"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__aefd7f7c56d9742aa969b6cb263d2f68d">protransform</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__af167e185f9e0420ab7f27e70716aeb98">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a8b480281f893433aa2e3c2563e378fd6">Simplified call method for this function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__rb58a91cc0f4d46b9875430e12bbb027a"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__aa5a73bc9ba7e42368aec788d5318008b">proisagg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a67e0cb6ee93b4585a471b15c5ab35f86"><span id="EN-US_TOPIC_0000001233563243__text1743315653617">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a20758b4255a04badaba362a2f1e3868f">Whether this function is an aggregate function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r76983d9944a6458ca94e94c46ac60153"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__ab2b656c766104578a4a7be46d35973c0">proiswindow</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a440a4c847d954ddfbcefdf240e2ff948"><span id="EN-US_TOPIC_0000001233563243__text1440716572360">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__affca871db38b43baa6464f10f6bea0b7">Whether this function is a window function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r863f604f69e84fd7b4e1b86be2a4a7c3"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__ad916d7b494024aa3aedb5bf196e645f5">prosecdef</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a90bd1889c6df4b0cb7522d794dc703eb"><span id="EN-US_TOPIC_0000001233563243__text618535911365">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a4ac1497465ea41a29d441b9f8f83c94e">Whether this function is a security definer (such as a "setuid" function)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r1205c51363f64a0ea4ad2dcedee61da0"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a1b676572527341cd971db40668ba3ca7">proleakproof</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__ad544e2a637b34563a48092fb4fda275e"><span id="EN-US_TOPIC_0000001233563243__text34211709374">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a7eeba9c2c14e47ef86b321f33d7ff4a4">Whether this function has side effects. If no leakproof treatment is provided for parameters, the function throws errors.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r426df2ba5f414588bf37923f41f8894d"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__af70e925be1c647c89d51990bea5943ef">proisstrict</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__ae9706d8a15f74ed6844dc78f6bd92238"><span id="EN-US_TOPIC_0000001233563243__text146216123715">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__add154351a7584426a13caab68984b80d">The function returns null if any call parameter is null. In that case the function does not actually be called at all. Functions that are not "strict" must be prepared to process null inputs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r0c3852ff09074380b5e021b2c0fed4a1"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a69c7b6e0576d43d092e52a73406a3555">proretset</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a436b455fa07d4a548394df50a73baf1e"><span id="EN-US_TOPIC_0000001233563243__text447915216377">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__afdf869d0b38040d9b00b55483cf549d8">The function returns a set, that is, multiple values of the specified data type.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r68dba87797f644cc9b506951c5635e23"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a64e1eb00656249c68cfd5d3b4cee9a00">provolatile</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a857df54b132846d0a79a88a0087e73cb">"char"</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a356e7812861c47b196d2a70536d8684f">Whether the function's result depends only on its input parameters, or is affected by outside factors</p>
|
|
<ul id="EN-US_TOPIC_0000001233563243__ua1d9949a61e945658e1f5a3b40d5e52c"><li id="EN-US_TOPIC_0000001233563243__l80e4231016474beda349c2042b711a4d">It is <strong id="EN-US_TOPIC_0000001233563243__b205826254483">i</strong> for "immutable" functions, which always deliver the same result for the same inputs.</li><li id="EN-US_TOPIC_0000001233563243__le8b491a46a664f25bbdaf6ce3fc8391b">It is <strong id="EN-US_TOPIC_0000001233563243__b842352706211132">s</strong> for "stable" functions, whose results (for fixed inputs) do not change within a scan.</li><li id="EN-US_TOPIC_0000001233563243__l70999d66ce444d8180cf9b1333ab234c">It is <strong id="EN-US_TOPIC_0000001233563243__b4285174918489">v</strong> for "volatile" functions, whose results may change at any time.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r0533134a8ebc4c57963c27d8cd72f54a"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a962e9abacf7847848a5b3861d45d4d3b">pronargs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a303f18190fb84784a2606a46be9750f7">smallint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a5151a47c5d604e129f300decf640bcf0">Number of parameters</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__redca992a93e446339a221348d5cae85f"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__ac6effb19b3ac41adb8fbd81680df45c4">pronargdefaults</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__aa81ad7f9ce284822a1a167057a3e5813">smallint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a659c5040fcaf4723bad696abfae8d877">Number of parameters that have default values</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__rcfb5c502ab2a48ec87295efe613f859f"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a84e6930f78a54be3ab4eed0b86e5c9b1">prorettype</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a810122c39fa146aea3908df186ef598b">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a4b99977a7d9e4eab8e8e6ec0d7c0e3cc">OID of the returned parameter type</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r2736b6c80e29429baeeb08eeac4ac90a"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__aec2e8df5f6e848088edeed1374266b83">proargtypes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a6dc56dc8220d41e0931e77e061d5188c">oidvector</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__adbe5a5d2079f4e26a318ef18062fe086">Array with the data types of the function parameters. This array includes only input parameters (including <strong id="EN-US_TOPIC_0000001233563243__b1133805310537">INOUT</strong> parameters) and thus represents the call signature of the function.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r748125f66c564fa6ab5bd554f7a54415"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__ae7ea19ba201c4ec0a0a45db9203f7f13">proallargtypes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a325b4f1616df48b38838c6f6f81df8df">oid[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a2d24200d12c945ab804fcdf1c0d0f106">Array with the data types of the function parameters. This array includes all parameter types (including <strong id="EN-US_TOPIC_0000001233563243__b561923119542">OUT</strong> and <strong id="EN-US_TOPIC_0000001233563243__b6624163118548">INOUT</strong> parameters); however, if all the parameters are <strong id="EN-US_TOPIC_0000001233563243__b16625113117544">IN</strong> parameters, this column is null. Note that array subscripting is 1-based, whereas for historical reasons, and <strong id="EN-US_TOPIC_0000001233563243__b135361241105417">proargtypes</strong> is subscripted from 0.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r59d70105a9ca48a9ad0b768e1e440ef8"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a0d38cfb05123437487c97add0503e215">proargmodes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__aae3d063bc92f4d7886eaff566b338a5b">"char"[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__p658242773814">Array with the modes of the function parameters.</p>
|
|
<ul id="EN-US_TOPIC_0000001233563243__ul46951814113910"><li id="EN-US_TOPIC_0000001233563243__li146967148395"><strong id="EN-US_TOPIC_0000001233563243__b174751937165614">i</strong> indicates <strong id="EN-US_TOPIC_0000001233563243__b358563910563">IN</strong> parameters.</li><li id="EN-US_TOPIC_0000001233563243__li969601473918"><strong id="EN-US_TOPIC_0000001233563243__b86247405713">o</strong> indicates <strong id="EN-US_TOPIC_0000001233563243__b19176585573">OUT</strong> parameters.</li><li id="EN-US_TOPIC_0000001233563243__li669671433913"><strong id="EN-US_TOPIC_0000001233563243__b206011113185711">b</strong> indicates <strong id="EN-US_TOPIC_0000001233563243__b16321518105719">INOUT</strong> parameters.</li></ul>
|
|
<p id="EN-US_TOPIC_0000001233563243__a6c9a7429a5e64766a16b8f77b9fcc7d3">If all the parameters are <strong id="EN-US_TOPIC_0000001233563243__b103875811418">IN</strong> parameters, this column is null. Note that subscripts of this array correspond to positions of <strong id="EN-US_TOPIC_0000001233563243__b1265135085813">proallargtypes</strong> not <strong id="EN-US_TOPIC_0000001233563243__b46060185918">proargtypes</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r8359c43cb04244ecafd4cd2272c90e2f"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a7ddbb14952f047ffb0208a0b920c35de">proargnames</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a3afc48f876ea4753af2739b4b97d9111">text[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a7b2a5c203c9c49d28a2b9f98c370626a">Array that stores the names of the function parameters. Parameters without a name are set to empty strings in the array. If none of the parameters have a name, this column is null. Note that subscripts correspond to positions of <strong id="EN-US_TOPIC_0000001233563243__b54171041115918">proallargtypes</strong> not <strong id="EN-US_TOPIC_0000001233563243__b18417124115597">proargtypes</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r4d54cd0a62e049e1a57ff35ecfab915f"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a170895ba3e19417e9b33b6371d9650e3">proargdefaults</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__ab099e6bfd85e4a7fbed86323f3104056">pg_node_tree</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__ae6224f6d973142839fa3be8a5e58118d">Expression tree of the default value. This is the list of PRONARGDEFAULTS elements.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r10ca0aa8c6204f3882ec96d06045fb7a"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a5ed6bf455f0e4baa8de8e491521954b4">prosrc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__ac92ed959656745188ec5b40b6d648923">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__af471c8feb3c24674bff97c5a1e79d335">A definition that describes a function or stored procedure. In an interpreting language, it is the function source code, a link symbol, a file name, or any body content specified when a function or stored procedure is created, depending on how a language or calling is used.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__rc3c27cd9ca0649039bae4bab4278b08f"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a6bf5064afe4940368b25a007be421268">probin</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a269fd78e87c54655b8ddf3fab02eb410">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__afc8e5de7a5844cd0844dfcab59f6eeab">Additional information about how to call the function. Again, the interpretation is language-specific.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r49bfcf791432430791e583b44e89b554"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a0b3c864bb0414f9984ee112bbb563026">proconfig</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a42c5dd58626d4910b39fd550a122ec92">text[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__adaccb4a668924b579e090b77fc1e310e">Function's local settings for run-time configuration variables.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r12676382655b4645b607b003a4c0699e"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__ae4cdf1abf6954be7b2180934cc1860e3">proacl</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__ab293a7ce1cd343b593b558907d0bf4b3">aclitem[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a4ff022f1ca394b57953a19c1672cad0a">Access permissions For details, see GRANT and REVOKE.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__r44f91f24e66b4d8cbb0e8e57974dbaed"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__a042b2c7b46dd4810bdc416de7bcfcf35">prodefaultargpos</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__a8897dadb4176452c8029f98219a909f5">int2vector</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__a5e3642549a3d4846a1a934467b93b751">Locations of the function default values. Not only the last few parameters have default values.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__row686174217515"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__p28674210510">fencedmode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__p8863421512"><span id="EN-US_TOPIC_0000001233563243__text3682183153717">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__p6861342165114">Execution mode of a function, indicating whether a function is executed in fence or not fence mode. If the execution mode is fence, the function is executed in the fork process that is reworked. The default value is <strong id="EN-US_TOPIC_0000001233563243__b842352706172230">fence</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__row784317718558"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__p884317115515">proshippable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__p38430735515"><span id="EN-US_TOPIC_0000001233563243__text63574554331">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__p193202191116">Whether a function can be pushed down to DNs. The default value is <strong id="EN-US_TOPIC_0000001233563243__b17679171983414">false</strong>.</p>
|
|
<ul id="EN-US_TOPIC_0000001233563243__ul7834143017421"><li id="EN-US_TOPIC_0000001233563243__li178341130184212">Functions of the IMMUTABLE type can always be pushed down to the DNs.</li><li id="EN-US_TOPIC_0000001233563243__li118352307429">Functions of the STABLE or VOLATILE type can be pushed down to DNs only if their attribute is <strong id="EN-US_TOPIC_0000001233563243__b1360861913467">SHIPPABLE</strong>.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563243__row1152415694116"><td class="cellrowborder" valign="top" width="25.77%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563243__p18524661417">propackage</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.5%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563243__p17209185853314"><span id="EN-US_TOPIC_0000001233563243__text1320919580339">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60.73%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563243__p1552619614416">Indicates whether the function supports overloading, which is mainly used for the Oracle style function. The default value is <strong id="EN-US_TOPIC_0000001233563243__b10822119974">false</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001233563243__section484813815416"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001233563243__p573019137416">Query the OID of a specified function. For example, obtain the OID <strong id="EN-US_TOPIC_0000001233563243__b51011336571">1295</strong> of the <strong id="EN-US_TOPIC_0000001233563243__b18109143315719">justify_days</strong> function.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563243__screen5231135114117"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">oid</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_proc</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">proname</span><span class="w"> </span><span class="o">=</span><span class="s1">'justify_days'</span><span class="p">;</span>
|
|
<span class="w"> </span><span class="n">oid</span>
|
|
<span class="c1">------</span>
|
|
<span class="w"> </span><span class="mi">1295</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001233563243__p16891141912459">Query whether a function is an aggregate function. For example, the <strong id="EN-US_TOPIC_0000001233563243__b13259174355720">justify_days</strong> function is a non-aggregate function.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563243__screen9868161185315"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">proisagg</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_proc</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">proname</span><span class="w"> </span><span class="o">=</span><span class="s1">'justify_days'</span><span class="p">;</span>
|
|
<span class="w"> </span><span class="n">proisagg</span>
|
|
<span class="c1">----------</span>
|
|
<span class="w"> </span><span class="n">f</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001233563243__p2283558125215">Query the owner of a specified function. For example, the query returns that the owner of the <strong id="EN-US_TOPIC_0000001233563243__b9242195262319">func_add_sql</strong> function is user <strong id="EN-US_TOPIC_0000001233563243__b187316541234">u1</strong>.</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563243__screen6154194122820"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
|
<span class="normal"> 2</span>
|
|
<span class="normal"> 3</span>
|
|
<span class="normal"> 4</span>
|
|
<span class="normal"> 5</span>
|
|
<span class="normal"> 6</span>
|
|
<span class="normal"> 7</span>
|
|
<span class="normal"> 8</span>
|
|
<span class="normal"> 9</span>
|
|
<span class="normal">10</span>
|
|
<span class="normal">11</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="n">proowner</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_proc</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">proname</span><span class="o">=</span><span class="s1">'func_add_sql'</span><span class="p">;</span>
|
|
<span class="w"> </span><span class="n">proowner</span>
|
|
<span class="c1">----------</span>
|
|
<span class="w"> </span><span class="mi">542778</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
|
|
<span class="k">SELECT</span><span class="w"> </span><span class="n">usename</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">pg_user</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">usesysid</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'542778'</span><span class="p">;</span>
|
|
<span class="w"> </span><span class="n">usename</span>
|
|
<span class="c1">---------</span>
|
|
<span class="w"> </span><span class="n">u1</span>
|
|
<span class="p">(</span><span class="mi">1</span><span class="w"> </span><span class="k">row</span><span class="p">)</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0561.html">System Catalogs</a></div>
|
|
</div>
|
|
</div>
|
|
|