doc-exports/docs/dws/dev/dws_04_0934.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 version
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>
2024-11-02 09:07:47 +00:00

73 lines
17 KiB
HTML

<a name="EN-US_TOPIC_0000001510283781"></a><a name="EN-US_TOPIC_0000001510283781"></a>
<h1 class="topictitle1">Cluster Transaction Parameters</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_p105914161197">This section describes the settings and value ranges of cluster transaction parameters.</p>
<div class="section" id="EN-US_TOPIC_0000001510283781__sd9d0a139a3474dff81c16afbd8fca303"><h4 class="sectiontitle">transaction_isolation</h4><p id="EN-US_TOPIC_0000001510283781__a3aa0cf32ab594e0f8d294570595fa7b5"><strong id="EN-US_TOPIC_0000001510283781__b35889067">Parameter description</strong>: Specifies the isolation level of the current transaction.</p>
<p id="EN-US_TOPIC_0000001510283781__p8226203042311"><strong id="EN-US_TOPIC_0000001510283781__b455234864714">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001510283781__ab4b08ba65613402ca13fdfd09580d982"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_aa2861b35266d48acac63aff112fc5b1e">Value range</strong>:</p>
<ul id="EN-US_TOPIC_0000001510283781__ul29345551841"><li id="EN-US_TOPIC_0000001510283781__li18934145519418"><strong id="EN-US_TOPIC_0000001510283781__b7742154463910">READ COMMITTED</strong>: Only committed data is read. This is the default.</li><li id="EN-US_TOPIC_0000001510283781__li15934155516411"><strong id="EN-US_TOPIC_0000001510283781__b12476306515">READ UNCOMMITTED</strong>: <span id="EN-US_TOPIC_0000001510283781__text114817025111">GaussDB(DWS)</span> does not support <strong id="EN-US_TOPIC_0000001510283781__b648280135119">READ UNCOMMITTED</strong>. If <strong id="EN-US_TOPIC_0000001510283781__b1348250195119">READ UNCOMMITTED</strong> is set, <strong id="EN-US_TOPIC_0000001510283781__b648214035114">READ COMMITTED</strong> is executed instead.</li><li id="EN-US_TOPIC_0000001510283781__li10935555244"><strong id="EN-US_TOPIC_0000001510283781__b1285610492390">REPEATABLE READ</strong>: Only the data committed before transaction start is read. Uncommitted data or data committed in other concurrent transactions cannot be read.</li><li id="EN-US_TOPIC_0000001510283781__li593511551545"><strong id="EN-US_TOPIC_0000001510283781__b1936417315513">SERIALIZABLE</strong>: <span id="EN-US_TOPIC_0000001510283781__text5364234515">GaussDB(DWS)</span> does not support <strong id="EN-US_TOPIC_0000001510283781__b12365113135120">SERIALIZABLE</strong>. If <strong id="EN-US_TOPIC_0000001510283781__b6365203125111">SERIALIZABLE</strong> is set, <strong id="EN-US_TOPIC_0000001510283781__b1136523165119">REPEATABLE READ</strong> is executed instead.</li></ul>
<p id="EN-US_TOPIC_0000001510283781__aa41331776092480a9260b8dc77b4ca96"><strong id="EN-US_TOPIC_0000001510283781__b479916411513">Default value</strong>: <strong id="EN-US_TOPIC_0000001510283781__b380074105112">READ COMMITTED</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001510283781__s5b210d8773694747a97b5762787d25aa"><h4 class="sectiontitle">transaction_read_only</h4><p id="EN-US_TOPIC_0000001510283781__abcabb10e66a844b0ad124c3f6741b6fe"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_en-us_topic_0058967582_b322665192930">Parameter description</strong>: Specifies that the current transaction is a read-only transaction.</p>
<p id="EN-US_TOPIC_0000001510283781__p5131749173010"><strong id="EN-US_TOPIC_0000001510283781__b4130249104714">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001510283781__ac97a1e9552374e1db93d64b2b6f325df"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_a4df0f3e6fb4a4993bd151746fc29b615">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001510283781__u85dc5fab8eeb4314a4f8a73004d05c04"><li id="EN-US_TOPIC_0000001510283781__l5ff982d837af4a508b89b5548f5c2e0f"><strong id="EN-US_TOPIC_0000001510283781__b842352706135927">on</strong> indicates that the current transaction is a read-only transaction.</li><li id="EN-US_TOPIC_0000001510283781__l34bf0273a8fc4073a891876d32b7ca9e"><strong id="EN-US_TOPIC_0000001510283781__b262131805135937">off</strong> indicates that the current transaction can be a read/write transaction.</li></ul>
<p id="EN-US_TOPIC_0000001510283781__a949cf344300947418214e147ad90a007"><strong id="EN-US_TOPIC_0000001510283781__b89091942113020">Default value</strong>: <strong id="EN-US_TOPIC_0000001510283781__b590934213307">off</strong> for CNs and <strong id="EN-US_TOPIC_0000001510283781__b8909342173015">on</strong> for DNs</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001510283781__s63b833ea501244038bfa5d6466719514"><h4 class="sectiontitle">xc_maintenance_mode</h4><p id="EN-US_TOPIC_0000001510283781__a6b74b43a38ba41f8b8f291a25c273767"><strong id="EN-US_TOPIC_0000001510283781__b8585964515">Parameter description</strong>: Specifies whether the system is in maintenance mode.</p>
<p id="EN-US_TOPIC_0000001510283781__p105394519166"><strong id="EN-US_TOPIC_0000001510283781__b2285154712163">Type</strong>: SUSET</p>
<p id="EN-US_TOPIC_0000001510283781__a8dd1424a7ab14e00a7793bcaf4297ba2"><strong id="EN-US_TOPIC_0000001510283781__b1028661575117">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001510283781__u5f312998310e41a89a1ad3def442a72a"><li id="EN-US_TOPIC_0000001510283781__l0634ecb7a7164c509f693c21f9d209bd"><strong id="EN-US_TOPIC_0000001510283781__b771581645120">on</strong> indicates that maintenance mode is enabled.</li><li id="EN-US_TOPIC_0000001510283781__l27e1b0a780f54873a4a1b5074c9a56f9"><strong id="EN-US_TOPIC_0000001510283781__b9164121845113">off</strong> indicates that the maintenance mode is disabled.</li></ul>
<p id="EN-US_TOPIC_0000001510283781__a223505c9e8a04530b8a56b3d7003eb59"><strong id="EN-US_TOPIC_0000001510283781__b55233292105553">Default value</strong>: <strong id="EN-US_TOPIC_0000001510283781__b842352706172155">off</strong></p>
<div class="notice" id="EN-US_TOPIC_0000001510283781__naf35617accbd4929904bc019b87774ec"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001510283781__af187cf68aade4c78bb7f8b8d8152c7e6">Enable the maintenance mode with caution to avoid cluster data inconsistencies.</p>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001510283781__se7223079970b4a10b569ada583d6f3d9"><h4 class="sectiontitle">allow_concurrent_tuple_update</h4><p id="EN-US_TOPIC_0000001510283781__adf29a5cb72784a39a65511ccedbd7234"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_aa9f6a14a274e43ae8f83b10d7f3b8d22">Parameter description</strong>: Specifies whether to allow concurrent update.</p>
<p id="EN-US_TOPIC_0000001510283781__p79901258113011"><strong id="EN-US_TOPIC_0000001510283781__b16493849134719">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001510283781__a34b42a18cf3e483c810a382ecc17d516"><strong id="EN-US_TOPIC_0000001510283781__b240091920511">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001510283781__ud5f3744ec40e4941b67635417d7977df"><li id="EN-US_TOPIC_0000001510283781__lf2cd7aa63c834ee19a8c880a03b2c33c"><strong id="EN-US_TOPIC_0000001510283781__b547922910514">on</strong> indicates it is enabled.</li><li id="EN-US_TOPIC_0000001510283781__l91a00a3607bd410eb3eacdda6dc89fb7"><strong id="EN-US_TOPIC_0000001510283781__b5564203818516">off</strong> indicates it is disabled.</li></ul>
<p id="EN-US_TOPIC_0000001510283781__a008a0521c7b14fac96e6f64d042288ad"><strong id="EN-US_TOPIC_0000001510283781__b337814198113">Default value</strong>: <strong id="EN-US_TOPIC_0000001510283781__b18386219413">on</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001510283781__s07f04c9e09dd49f99d806c6d1b222730"><h4 class="sectiontitle">gtm_backup_barrier</h4><p id="EN-US_TOPIC_0000001510283781__ad50d6ecfaa9d4e3da30b22737ab58f2a"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_en-us_topic_0058967582_b767844611582">Parameter description</strong>: Specifies whether to create a restoration point for the GTM starting point.</p>
<p id="EN-US_TOPIC_0000001510283781__a06805fcf12a446f0be207f4f94b471d0"><strong id="EN-US_TOPIC_0000001510283781__b8591232102815">Type</strong>: SUSET</p>
<p id="EN-US_TOPIC_0000001510283781__a5a4ebd449cc44813b10995d7a9849f1d"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_ad5cccb767b8a44de96027a65c28eae04">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001510283781__u0c3671dd188646878bddcef77fe00a1c"><li id="EN-US_TOPIC_0000001510283781__l654a5e6de0e84d8f851d385dd4be92dd"><strong id="EN-US_TOPIC_0000001510283781__b84235270614160">on</strong> indicates that a restoration point will be created for the GTM starting point.</li><li id="EN-US_TOPIC_0000001510283781__l5fb3b33f60ac45ffa35ae626f00af4d2"><strong id="EN-US_TOPIC_0000001510283781__b4330817114166">off</strong> indicates that a restoration point will not be created for the GTM starting point.</li></ul>
<p id="EN-US_TOPIC_0000001510283781__ab993733625ce4e3a89b398161d4570b5"><strong id="EN-US_TOPIC_0000001510283781__b1149208147">Default value</strong>: <strong id="EN-US_TOPIC_0000001510283781__b2046702216">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001510283781__s2b18232f556043c898407e02edfdef1b"><h4 class="sectiontitle">gtm_conn_check_interval</h4><p id="EN-US_TOPIC_0000001510283781__a453fae8573374bb9872b03f5cd024b8c"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_ab92dfadc151e46d1922a24ebf6f15641">Parameter description</strong>: Sets the CN to check whether the connection between the local thread and the primary GTM is normal.</p>
<p id="EN-US_TOPIC_0000001510283781__p10945314640"><strong id="EN-US_TOPIC_0000001510283781__b1717454125917">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001510283781__a858f586ddd5349228d0dfe6e988a3577"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_af21f52970486449e9e227ae87d38b721">Value range</strong>: an integer ranging from 0 to INT_MAX/1000. The unit is second.</p>
<p id="EN-US_TOPIC_0000001510283781__a51adf803b81741c0afd5cdbdcca1e02e"><strong id="EN-US_TOPIC_0000001510283781__b586515861640">Default value</strong>: <strong id="EN-US_TOPIC_0000001510283781__b842352706165728">10s</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001510283781__s03d3940b5f7549e3a3e7c32ab36bf3d7"><h4 class="sectiontitle">transaction_deferrable</h4><p id="EN-US_TOPIC_0000001510283781__a5d2d66ff9139422cb67b48e3abc96620"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_a90a94ff5e6d24dc280359d489253d598">Parameter description</strong>: Specifies whether to delay the execution of a read-only serial transaction without incurring an execution failure. Assume this parameter is set to <span class="parmvalue" id="EN-US_TOPIC_0000001510283781__parmvalue20382124413512"><b>on</b></span>. When the server detects that the tuples read by a read-only transaction are being modified by other transactions, it delays the execution of the read-only transaction until the other transactions finish modifying the tuples. Currently, this parameter is not used in <span id="EN-US_TOPIC_0000001510283781__text1262829036">GaussDB(DWS)</span>. Similar to this parameter, the <a href="dws_04_0925.html#EN-US_TOPIC_0000001510402201__s05ef9312d74143928830d7d459cdc63a">default_transaction_deferrable</a> parameter is used to specify whether to allow delayed execution of a transaction.</p>
<p id="EN-US_TOPIC_0000001510283781__p1569631414312"><strong id="EN-US_TOPIC_0000001510283781__b1751349204715">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001510283781__a056768eae8e644f28561178ab3729a3f"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_ac29187570a8f43cf841edf4e3238409c">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001510283781__uf3003cf8c9e040c5a26731db10c52c14"><li id="EN-US_TOPIC_0000001510283781__ld010140e463444bf8c9d746c78d25ebf"><strong id="EN-US_TOPIC_0000001510283781__b842352706142640">on</strong> indicates that the execution of a read-only serial transaction can be delayed.</li><li id="EN-US_TOPIC_0000001510283781__l62bc5fd4fbb94bc88b0d019c7490ff4d"><strong id="EN-US_TOPIC_0000001510283781__b973132058142723">off</strong> indicates that the execution of a read-only serial transaction cannot be delayed.</li></ul>
<p id="EN-US_TOPIC_0000001510283781__a04472cbfc2304b0f97382008105c5ddd"><strong id="EN-US_TOPIC_0000001510283781__b914442375">Default value</strong>: <strong id="EN-US_TOPIC_0000001510283781__b1333090438">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001510283781__s9286953201d046bc9731dd5231351a0b"><h4 class="sectiontitle">enforce_two_phase_commit</h4><p id="EN-US_TOPIC_0000001510283781__a5da4529f0bad4b78b7318f88e1df2558"><strong id="EN-US_TOPIC_0000001510283781__b1378314536112">Parameter description</strong>: This parameter is reserved for compatibility with earlier versions. This parameter is invalid in the current version.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001510283781__s5ca6923d335f477e892a8d03a295b7c1"><h4 class="sectiontitle">enable_show_any_tuples</h4><p id="EN-US_TOPIC_0000001510283781__ab3597abe43794d1591452b12e311fd13"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_af31d26307b4542e6a47eb50b9fe44166">Parameter description</strong>: This parameter is available only in a read-only transaction and is used for analysis. When this parameter is set to <span class="parmvalue" id="EN-US_TOPIC_0000001510283781__parmvalue555125744145417"><b>on/true</b></span>, all versions of tuples in the table are displayed.</p>
<p id="EN-US_TOPIC_0000001510283781__p12968102333113"><strong id="EN-US_TOPIC_0000001510283781__b69245494471">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001510283781__a8d190b57a3864bd3b10eb4f06af98c5c"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_af42e3dda855140f0b4586b97281083ec">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001510283781__u7270295d899747898cece372408b058f"><li id="EN-US_TOPIC_0000001510283781__l1115ab2d646b41eb8890f0c9cf4c0651"><strong id="EN-US_TOPIC_0000001510283781__b842352706143110">on/true</strong> indicates that all versions of tuples in the table are displayed.</li><li id="EN-US_TOPIC_0000001510283781__lef793e587d6a4874869a5151e7d52504"><strong id="EN-US_TOPIC_0000001510283781__b143191698414555">off/false</strong> indicates that no versions of tuples in the table are displayed.</li></ul>
<p id="EN-US_TOPIC_0000001510283781__a474e2f70eeb145cfbb1213c959787c4a"><strong id="EN-US_TOPIC_0000001510283781__b1592189144">Default value</strong>: <strong id="EN-US_TOPIC_0000001510283781__b2039771352">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001510283781__s23bdab2e9a9c4cb99c4f111930d178fd"><h4 class="sectiontitle">gtm_connect_retries</h4><p id="EN-US_TOPIC_0000001510283781__a7da176b453854452953985d85b2914bd"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_a04d5d0435ee545acab9fab9aa8252dc0">Parameter description</strong>: Specifies the number of GTM reconnection attempts.</p>
<p id="EN-US_TOPIC_0000001510283781__p6968195733216"><strong id="EN-US_TOPIC_0000001510283781__b115266523474">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001510283781__a47c636ced29a40408ba54f2b301108fd"><strong id="EN-US_TOPIC_0000001510283781__en-us_topic_0059778361_ae44b78fcb17441c0a2f2015972dfeac2">Value range</strong>: an integer ranging from 1 to 2147483647.</p>
<p id="EN-US_TOPIC_0000001510283781__ae2bd7ec2de7046a0bf8ab93335c02213"><strong id="EN-US_TOPIC_0000001510283781__b31155792113852">Default value</strong>: <strong id="EN-US_TOPIC_0000001510283781__b842352706165012">30</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001510283781__section1957062311617"><h4 class="sectiontitle">idle_in_transaction_timeout</h4><p id="EN-US_TOPIC_0000001510283781__p7569182311615"><strong id="EN-US_TOPIC_0000001510283781__b8653174513419">Parameter description</strong>: duration during which a transaction is allowed to be in the idle state. When a transaction is in the idle state for a period specified by this parameter, the transaction is terminated. This function takes effect only for client connections that are directly connected to CNs and does not take effect for direct DNs or internal connections. This parameter is supported only by clusters of version 8.2.1.100 or later.</p>
<p id="EN-US_TOPIC_0000001510283781__p8570102311618"><strong id="EN-US_TOPIC_0000001510283781__b148284345184">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001510283781__p4570142351616"><strong id="EN-US_TOPIC_0000001510283781__b2229142315137">Value range</strong>: 0 to 86400, in second. Value <strong id="EN-US_TOPIC_0000001510283781__b1894716572598">0</strong> indicates that this feature is disabled.</p>
<p id="EN-US_TOPIC_0000001510283781__p185701723121620"><strong id="EN-US_TOPIC_0000001510283781__b170173595453355">Default value</strong>: <strong id="EN-US_TOPIC_0000001510283781__b36799208553355">0</strong></p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0883.html">GUC Parameters of the GaussDB(DWS) Database</a></div>
</div>
</div>