Files
doc-exports/docs/dws/dev/dws_04_1109.html
luhuayi 177cd61a57 DWS DEVG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-05-05 07:44:03 +00:00

94 lines
7.5 KiB
HTML

<a name="EN-US_TOPIC_0000001821105716"></a><a name="EN-US_TOPIC_0000001821105716"></a>
<h1 class="topictitle1">PG_SEQUENCES</h1>
<div id="body0000001821105716"><p id="EN-US_TOPIC_0000001821105716__p7543216145212"><strong id="EN-US_TOPIC_0000001821105716__b1833184211416">PG_SEQUENCES</strong> displays the sequence attributes on which the current user has permissions. This view is supported only by clusters of version 9.1.0 or later.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001821105716__t8066696820b54008b9d7a1b115025476" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_SEQUENCES columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001821105716__r768dd29a6f2d48dc80c1e64f6a19f462"><th align="left" class="cellrowborder" valign="top" width="28.49%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001821105716__ac7cbd020c1c14454b121bd493601abe9"><strong id="EN-US_TOPIC_0000001821105716__b10756931074375">Column</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.61%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001821105716__a282ffd2a2738459ea3ed44f857b52e7b">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="55.900000000000006%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001821105716__ae8b7c4ff878546eda01a95284904c203">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001821105716__r92748828acd345078c19f6e2f0d37ff3"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001821105716__p731615244535">schemaname</p>
</td>
<td class="cellrowborder" valign="top" width="15.61%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001821105716__p431342416530">Name</p>
</td>
<td class="cellrowborder" valign="top" width="55.900000000000006%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001821105716__p430902418534">Name of the namespace.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001821105716__r07c907719908457ba5746b8343efd8e5"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001821105716__p1130632413539">sequencename</p>
</td>
<td class="cellrowborder" valign="top" width="15.61%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001821105716__p9303122411533">Name</p>
</td>
<td class="cellrowborder" valign="top" width="55.900000000000006%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001821105716__p145922241597">Name of the sequence</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001821105716__r792529f0da3a497d8e0e11d947c1e422"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001821105716__p22971224195317">sequenceowner</p>
</td>
<td class="cellrowborder" valign="top" width="15.61%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001821105716__p122941424135318">Name</p>
</td>
<td class="cellrowborder" valign="top" width="55.900000000000006%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001821105716__p92911324105315">Owner of the sequence</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001821105716__rd92bd4721056464a8f8ae4a6b73818d5"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001821105716__p1428820243534">start_value</p>
</td>
<td class="cellrowborder" valign="top" width="15.61%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001821105716__p32860247531">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.900000000000006%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001821105716__p728382465318">Start value of the sequence.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001821105716__rb1f7a837a8d4493ab75fe835ca1790ce"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001821105716__p1028011242535">min_value</p>
</td>
<td class="cellrowborder" valign="top" width="15.61%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001821105716__p0277182417533">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.900000000000006%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001821105716__p14275724145314">Minimum value generated by the sequence.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001821105716__r5a5a81e1702d41fb8f84b661e5e1313a"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001821105716__p7272724145319">max_value</p>
</td>
<td class="cellrowborder" valign="top" width="15.61%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001821105716__p182694242538">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.900000000000006%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001821105716__p17266102414535">Maximum value generated by the sequence.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001821105716__row891235810714"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001821105716__p6912105819710">increment_by</p>
</td>
<td class="cellrowborder" valign="top" width="15.61%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001821105716__p091285811711">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.900000000000006%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001821105716__p189122581571">Amount by which the generated value increases each time in a sequence.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001821105716__r3b6c921aca714adca595ca35a3380cab"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001821105716__p2026352485315">cycle</p>
</td>
<td class="cellrowborder" valign="top" width="15.61%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001821105716__p3260152435310">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="55.900000000000006%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001821105716__p12662235181817">If set to <strong id="EN-US_TOPIC_0000001821105716__b413055315324">true</strong>, the sequence value restarts from the minimum value after reaching the maximum value. If set to <strong id="EN-US_TOPIC_0000001821105716__b1751257163213">false</strong>, the sequence value stops generating after reaching the maximum value.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001821105716__reff363ab276f48aa98670e8b247c063e"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001821105716__p925122415535">cache_size</p>
</td>
<td class="cellrowborder" valign="top" width="15.61%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001821105716__p124752485311">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.900000000000006%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001821105716__p4243192495319">Size of the sequence cache value.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001821105716__row15457203616711"><td class="cellrowborder" valign="top" width="28.49%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001821105716__p845810361977">last_value</p>
</td>
<td class="cellrowborder" valign="top" width="15.61%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001821105716__p1045811361075">Bigint</p>
</td>
<td class="cellrowborder" valign="top" width="55.900000000000006%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001821105716__p15458123611717">Most recently generated value of the sequence.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
</div>
</div>