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>
98 lines
8.9 KiB
HTML
98 lines
8.9 KiB
HTML
<a name="EN-US_TOPIC_0000001233681789"></a><a name="EN-US_TOPIC_0000001233681789"></a>
|
|
|
|
<h1 class="topictitle1">PG_AGGREGATE</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001233681789__a36ed34b3e7ae446988e0857adbcdbf7c"><strong id="EN-US_TOPIC_0000001233681789__b15119292561">pg_aggregate</strong> records information about aggregation functions. Each entry in <strong id="EN-US_TOPIC_0000001233681789__aa6237222d3a14bd1a62955a5c2b082ef">pg_aggregate</strong> is an extension of an entry in <strong id="EN-US_TOPIC_0000001233681789__ad73df61efcbb413287b78f7e87771ddd">pg_proc</strong>. The <strong id="EN-US_TOPIC_0000001233681789__a0d77f044a7f84d4690420c46a0de0efa">pg_proc</strong> entry carries the aggregate's name, input and output data types, and other information that is similar to ordinary functions. </p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233681789__t9e297a5eca6c4523826dbe297d77238b" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_AGGREGATE columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233681789__r0d5d727614be427b92222d7e68a83c97"><th align="left" class="cellrowborder" valign="top" width="19.55%" id="mcps1.3.2.2.5.1.1"><p id="EN-US_TOPIC_0000001233681789__a96151dc0fe1f45458b4c7449a4de4cb9">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.530000000000001%" id="mcps1.3.2.2.5.1.2"><p id="EN-US_TOPIC_0000001233681789__a4b724aec1f894c5a8f42071d6cd5f117">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="27.82%" id="mcps1.3.2.2.5.1.3"><p id="EN-US_TOPIC_0000001233681789__afc4aebbce87345c994ce553b4a8e4ee7">Reference</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="39.1%" id="mcps1.3.2.2.5.1.4"><p id="EN-US_TOPIC_0000001233681789__a47d738f9d9db416e8bf0dd48d5248cfc">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001233681789__r3394ac18e0be4496ac96ae6d22e5d723"><td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681789__a88ea37b9520b424d8c66b157f57ff82f">aggfnoid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.530000000000001%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681789__abf9f6f83612c4a5095ac5e18ee9e33ed">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.82%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681789__a9cf39a0582714a219adc9efc0a7e4825"><a href="dws_04_0608.html">PG_PROC</a>.oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.1%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681789__a52290dfb7a1148539c1bf14acfed18e3"><a href="dws_04_0608.html">PG_PROC</a> OID of the aggregate function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681789__rb442eaab41fa4a4d9f6baf4770f316a0"><td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681789__ad09b6de319d6404d9866536f65be5d8a">aggtransfn</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.530000000000001%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681789__a4862ac7503364772bed1849dadc707a9">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.82%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681789__ab80864625bdb4106a7d7e7e2fdcbb575"><a href="dws_04_0608.html">PG_PROC</a>.oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.1%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681789__abee49673f9fd4b48a65d5c5600d947b6">Transition function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681789__r3424dcc1cd2549a0a6cce199f5554805"><td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681789__a9a673353ac234283b0b84dd716394c77">aggcollectfn</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.530000000000001%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681789__a959d69335ec0495e8edcbb8aa3656f45">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.82%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681789__ac53c832ad63a472a8f9a365358a6fae4"><a href="dws_04_0608.html">PG_PROC</a>.oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.1%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681789__aff6ddfc97ac54298ab913fd0ab34bc3d">Aggregate function</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681789__rd9eafd26220349a89edb1243aad292f9"><td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681789__ac28543cdaaf94bb997c6676a5326ba76">aggfinalfn</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.530000000000001%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681789__a66dfbf232fff42ca95e8769cd04fcd12">regproc</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.82%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681789__af75d98090e714c78bc2d526539bac97b"><a href="dws_04_0608.html">PG_PROC</a>.oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.1%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681789__af46cc7ce82f34330a5342c7c2181303d">Final function (zero if none)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681789__r3f263a8bc4334c6aa901860a831df346"><td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681789__a768a798c8a5341878df446aa17ab82b3">aggsortop</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.530000000000001%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681789__a9a34f8d06b33408db67b4feaa75ebaf1">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.82%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681789__a51c7d31d646145d39a94c892e14e4bde"><a href="dws_04_0604.html">PG_OPERATOR</a>.oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.1%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681789__adddb56b057a34766959f908bd2d5d5c7">Associated sort operator (zero if none)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681789__re41910eb347e4d069717e7a3ceab6f7c"><td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681789__a9ebb926411e14e9f885155a8e531f935">aggtranstype</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.530000000000001%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681789__ab0d1feba4bbc451bb547fac2525b4f79">oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.82%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681789__a8525570711334c058a3e3e17cfe71ad0"><a href="dws_04_0629.html">PG_TYPE</a>.oid</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.1%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681789__a553779637fa14000aa1401e8afd2a420">Data type of the aggregate function's internal transition (state) data</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681789__rd7443a12039d4fb29ea64213b92c4247"><td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681789__a1bad22f1fc6d4c638e81383ce9467ff2">agginitval</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.530000000000001%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681789__abaa4854f22444dbcb35b8a62de5657f8">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.82%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681789__a2ba38a9e1c9c479fa7fbd8b22319293a">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.1%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681789__ad2581abe45d84c5a84c199c5ec529cc9">Initial value of the transition state. This is a text column containing the initial value in its external string representation. If this column is null, the transition state value starts out null. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233681789__r596814fc7e8b4e44879b3b0b03408970"><td class="cellrowborder" valign="top" width="19.55%" headers="mcps1.3.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233681789__a0dd9336fd09e4907a5744cc05f953be0">agginitcollect</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.530000000000001%" headers="mcps1.3.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233681789__a529a71050ea348a6bf3a38dccfc7f64b">text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="27.82%" headers="mcps1.3.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233681789__a8316f80c257e41ddaa4d79722c2b3d92">-</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.1%" headers="mcps1.3.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233681789__ad44bef3d6ad646fbba4924e2bece5d23">Initial value of the collection state. This is a text column containing the initial value in its external string representation. If this column is null, the collection state value starts out null. </p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</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>
|
|
|