doc-exports/docs/dws/dev/dws_04_0945.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 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-05-16 07:24:04 +00:00

953 lines
134 KiB
HTML

<a name="EN-US_TOPIC_0000001233563213"></a><a name="EN-US_TOPIC_0000001233563213"></a>
<h1 class="topictitle1">Miscellaneous Parameters</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001233563213__s0fded4d62ed54c94b6d6d111e9b3b7eb"><h4 class="sectiontitle">enable_cluster_resize</h4><p id="EN-US_TOPIC_0000001233563213__p1488063910567"><strong id="EN-US_TOPIC_0000001233563213__b78801239205619">Parameter description</strong>: Indicates whether the current session is a scale-out redistribution session. This parameter applies only to scale-out redistribution sessions. Do not set this parameter for other service sessions.</p>
<p id="EN-US_TOPIC_0000001233563213__p118801839165611"><strong id="EN-US_TOPIC_0000001233563213__b98809395568">Parameter type</strong>: SUSET</p>
<p id="EN-US_TOPIC_0000001233563213__p18806391561"><strong id="EN-US_TOPIC_0000001233563213__b545514645">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__ul118801339145620"><li id="EN-US_TOPIC_0000001233563213__li16880173985613"><strong id="EN-US_TOPIC_0000001233563213__b64491081673520">on</strong> indicates that the current session is a scale-out redistribution session and redistribution SQL statements can be executed.</li><li id="EN-US_TOPIC_0000001233563213__li18805395566"><strong id="EN-US_TOPIC_0000001233563213__b1334794113519">off</strong> indicates that the current session is a non-scale-out redistribution session and redistribution SQL statements cannot be executed.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__a6d5cfc52a52f47e19fc3c5a605a1f78d"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_en-us_topic_0058967649_b42645073104244_2">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_en-us_topic_0058967649_b842352706195053">off</strong></p>
<div class="note" id="EN-US_TOPIC_0000001233563213__note391513091717"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233563213__p17915308174">This parameter is used for internal O&amp;M. Do not set it to <strong id="EN-US_TOPIC_0000001233563213__b1356771143911">on</strong> unless absolutely necessary.</p>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__s6fae1b61ff194289a379a299ff677d43"><h4 class="sectiontitle">dfs_partition_directory_length</h4><p id="EN-US_TOPIC_0000001233563213__a4614e313edd84cae851ca638742672e3"><strong id="EN-US_TOPIC_0000001233563213__aa42b93eff6494c03a473fcdffc0d5f03">Parameter description</strong>: Specifies the largest directory name length for the partition directory of a table partitioned by VALUE in the HDFS.</p>
<p id="EN-US_TOPIC_0000001233563213__p88251145134520"><strong id="EN-US_TOPIC_0000001233563213__b940185618492">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__ae933c2ed729b470d90ae478915726d12"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_en-us_topic_0058967649_b4378215721916">Value range</strong>: 92 to 7999</p>
<p id="EN-US_TOPIC_0000001233563213__a99a2833ba9f349d6b4c1d61a67ed2961"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_en-us_topic_0058967649_b37427418113820">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_en-us_topic_0058967649_b842352706195139">512</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__s21663391021e43df87e07dd32b06fab5"><h4 class="sectiontitle">enable_hadoop_env</h4><p id="EN-US_TOPIC_0000001233563213__a615fa8e08cad4169ba48f1df817d8607"><strong id="EN-US_TOPIC_0000001233563213__b964010596210">Parameter description</strong>: Sets whether local row- and column-store tables can be created in a database while the Hadoop feature is used. In the <span id="EN-US_TOPIC_0000001233563213__text1678142882">GaussDB(DWS)</span> cluster, it is set to <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0085032935_b84235270614431">off</strong> by default to support local row- and column- based storage and cross-cluster access to Hadoop. You are not advised to change the value of this parameter.</p>
<p id="EN-US_TOPIC_0000001233563213__p485195611459"><strong id="EN-US_TOPIC_0000001233563213__b1358125611490">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__a79b3b2d4fc7e45f1812f3493319dad8a"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b2003456202826">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__u4397de177dca4db69f0bd81398f6668a"><li id="EN-US_TOPIC_0000001233563213__l167f6b47312949f6b5ff949843889bc8"><strong id="EN-US_TOPIC_0000001233563213__b842352706145621">on</strong> or <strong id="EN-US_TOPIC_0000001233563213__b842352706145624">true</strong>, indicating that local row- and column-store tables cannot be created in a database while the Hadoop feature is used.</li><li id="EN-US_TOPIC_0000001233563213__l917b4888053848abb79b4d53a0da2364"><strong id="EN-US_TOPIC_0000001233563213__b19917131116319">off</strong> or <strong id="EN-US_TOPIC_0000001233563213__b139221211838">false</strong>, indicating that local row- and column-based tables can be created in a database while the Hadoop feature is used.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__a344a442189e142b59f3e8d47a3c7a09b"><strong id="EN-US_TOPIC_0000001233563213__b59975128311">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b11997121212314">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__s8bf53df890a74d4f965fe0f58ad3ca85"><h4 class="sectiontitle">enable_upgrade_merge_lock_mode</h4><p id="EN-US_TOPIC_0000001233563213__a2856039ebd794c688bd68c4735890a21"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_en-us_topic_0058967649_b842352706195430">Parameter description</strong>: If this parameter is set to <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_en-us_topic_0058967649_b637250170164027">on</strong>, the delta merge operation internally increases the lock level, and errors can be avoided when update and delete operations are performed at the same time.</p>
<p id="EN-US_TOPIC_0000001233563213__p442115222533"><strong id="EN-US_TOPIC_0000001233563213__b127018586498">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__aabbccaa23ee74b248d5a4d5058bd8bd0"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_en-us_topic_0058967649_b466774510813">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__u2b4543a180ad4ddb93dd9e00df3d8860"><li id="EN-US_TOPIC_0000001233563213__l55b963d7e56546bd97835c44632ee186">If this parameter is set to <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_en-us_topic_0058967649_b175332126164021">on</strong>, the delta merge operation internally increases the lock level. In this way, when any two of the <strong id="EN-US_TOPIC_0000001233563213__b156647084292858">DELTAMERGE</strong>, <strong id="EN-US_TOPIC_0000001233563213__b192680440792858">UPDATE</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b8416614692858">DELETE</strong> operations are concurrently performed, an operation can be performed only after the previous one is complete.</li><li id="EN-US_TOPIC_0000001233563213__l3af59e51552042f793c0adfdb594b55a">If this parameter is set to <strong id="EN-US_TOPIC_0000001233563213__b120717468692932">off</strong>, and any two of the <strong id="EN-US_TOPIC_0000001233563213__b109305566492932">DELTAMERGE</strong>, <strong id="EN-US_TOPIC_0000001233563213__b45861486792932">UPDATE</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b125889858692932">DELETE</strong> operations are concurrently performed to data in a row in the delta table of the HDFS table, errors will be reported during the later operation, and the operation will stop.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__ac9ebeed42c7a48078b50e92687413a52"><strong id="EN-US_TOPIC_0000001233563213__b1062860884">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b1691118853">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__s0442694c0bad43cc844a509bb4e35c92"><h4 class="sectiontitle">job_queue_processes</h4><p id="EN-US_TOPIC_0000001233563213__a497063e038a94b90b9766595021bfc0d"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b84235270691737">Parameter description</strong>: Specifies the number of jobs that can be concurrently executed.</p>
<p id="EN-US_TOPIC_0000001233563213__p7926164184414"><strong id="EN-US_TOPIC_0000001233563213__b1824712592493">Type</strong>: POSTMASTER</p>
<p id="EN-US_TOPIC_0000001233563213__a6cbb827a1c4148e6942d0f6c952ded6a"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_en-us_topic_0058967753_b66499804">Value range</strong>: 0 to 1000</p>
<p id="EN-US_TOPIC_0000001233563213__a47918790a4004bd0b703c818e817c95b"><strong id="EN-US_TOPIC_0000001233563213__b842352706171440">Functions</strong>:</p>
<ul id="EN-US_TOPIC_0000001233563213__ufe664f54755546c5ad8a08c56a2a0f35"><li id="EN-US_TOPIC_0000001233563213__l9a8eb7e2f25e47ee9914685c6e4f79f8">Setting <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b84235270694029">job_queue_processes</strong> to <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b84235270694035">0</strong> indicates that the scheduled task function is disabled and that no job will be executed. (Enabling scheduled tasks may affect the system performance. At sites where this function is not required, you are advised to disable it.)</li><li id="EN-US_TOPIC_0000001233563213__l0ce82cab58dd499ca1cd025c94f02dcb">Setting <strong id="EN-US_TOPIC_0000001233563213__b161033785893659">job_queue_processes</strong> to a value that is greater than <strong id="EN-US_TOPIC_0000001233563213__b202213719793659">0</strong> indicates that the scheduled task function is enabled and this value is the maximum number of tasks that can be concurrently processed.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_p345709639356">After the scheduled task function is enabled, the <strong id="EN-US_TOPIC_0000001233563213__b1756916185343">job_scheduler</strong> thread at a scheduled interval polls the <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b84235270610344">pg_jobs</strong> system catalog. The scheduled task check is performed every second by default.</p>
<p id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_p427032159356">Too many concurrent tasks consume many system resources, so you need to set the number of concurrent tasks to be processed. If the current number of concurrent tasks reaches <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b84235270610226">job_queue_processes</strong> and some of them expire, these tasks will be postponed to the next polling period. Therefore, you are advised to set the polling interval (the <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b141016104718431">interval</strong> parameter of the submit interface) based on the execution duration of each task to avoid the problem that tasks in the next polling period cannot be properly processed because overlong task execution time.</p>
<p id="EN-US_TOPIC_0000001233563213__a9053ca59af6842659297113b7f03ff9e">Note: If the number of parallel jobs is large and the value is too small, these jobs will wait in queues. However, a large parameter value leads to large resource consumption. You are advised to set this parameter to <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b11879427091853">100</strong> and change it based on the system resource condition.</p>
<p id="EN-US_TOPIC_0000001233563213__acc823d90efbe4d518dfdf1959589934c"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_a69c0ed76f7a6489cbb26a65ec66507af">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b842352706201318">10</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__s4e676820997f4234ae5d3c355c905e7e"><h4 class="sectiontitle">ngram_gram_size</h4><p id="EN-US_TOPIC_0000001233563213__a647022da78774ba7a3e9e98ff770b9a3"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b842352706145043">Parameter description</strong>: Specifies the length of the ngram parser segmentation.</p>
<p id="EN-US_TOPIC_0000001233563213__p1216912335537"><strong id="EN-US_TOPIC_0000001233563213__b0488115944911">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__a3b7bfed6b2de4e1cab833214bff5fd16"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_a1f68b0520df241448235cf649c501dd3">Value range</strong>: an integer ranging from 1 to 4</p>
<p id="EN-US_TOPIC_0000001233563213__aa51895dbdb7f43248e71e7cf1aefd3c2"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b60432567164116">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b84235270617214">2</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__s4544161dae6d4bc4ae45c1ab6e6d9b8e"><h4 class="sectiontitle">ngram_grapsymbol_ignore</h4><p id="EN-US_TOPIC_0000001233563213__a6dd38a96e1814df9ad9e8115d9a18527"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b1714795426145821">Parameter description</strong>: Specifies whether the ngram parser ignores graphical characters.</p>
<p id="EN-US_TOPIC_0000001233563213__p35111740165317"><strong id="EN-US_TOPIC_0000001233563213__b206451959114917">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__a341689c3e4564f40bdc4249d0ba1f55a"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b44926266164116">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__u812634179f4246b58fa1ca53ec16fd2b"><li id="EN-US_TOPIC_0000001233563213__le3d1cc04879844a6bd91e8fbd204cbd1"><strong id="EN-US_TOPIC_0000001233563213__a38cf9696df00460091355a9787b85f2d">on</strong>: Ignores graphical characters.</li><li id="EN-US_TOPIC_0000001233563213__l29f7fef9ed694f7b8d696eb515b3548c"><strong id="EN-US_TOPIC_0000001233563213__a6dd38afd340948da948bf1a237d8628c">off</strong>: Does not ignore graphical characters.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__a9978946dd30448b489f7daf914dd2c7b"><strong id="EN-US_TOPIC_0000001233563213__b57149268104838">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b44581368104838">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__s91f97979a62941a6aabcd7be22e87b1b"><h4 class="sectiontitle">ngram_punctuation_ignore</h4><p id="EN-US_TOPIC_0000001233563213__af2219d636f994605965d603f4899e295"><strong id="EN-US_TOPIC_0000001233563213__b25816034104838">Parameter description</strong>: Specifies whether the ngram parser ignores punctuations.</p>
<p id="EN-US_TOPIC_0000001233563213__p15340749135313"><strong id="EN-US_TOPIC_0000001233563213__b13830175924914">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__ab431647b3d944d94bb8d71e0fbb495e4"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b20556540164116">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__u9da355dcc7e646158ed4863a8754a622"><li id="EN-US_TOPIC_0000001233563213__le3598f8155d8410bb3e4a18075eb5e54"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b84235270615011">on</strong>: Ignores punctuations.</li><li id="EN-US_TOPIC_0000001233563213__la789482128194478a433ed9418329599"><strong id="EN-US_TOPIC_0000001233563213__a82cf1dbee91f464bb07b7c723ffe2d8c">off</strong>: Does not ignore punctuations.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__a09ada4fa67c5435b9b256d3bc6492356"><strong id="EN-US_TOPIC_0000001233563213__b50347420104838">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b842352706154337">on</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__s08a2d3907b5a46bd98f322e9c3c1db56"><h4 class="sectiontitle">zhparser_dict_in_memory</h4><p id="EN-US_TOPIC_0000001233563213__aeb7b8922f59f432482a2f518d840bfe5"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b84235270615127">Parameter description</strong>: Specifies whether Zhparser adds a dictionary to memory.</p>
<p id="EN-US_TOPIC_0000001233563213__p78461516161616"><strong id="EN-US_TOPIC_0000001233563213__b41390155013">Type</strong>: POSTMASTER</p>
<p id="EN-US_TOPIC_0000001233563213__a893b1cb5c0fb4aaaacde188d95a2ecfb"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b7002277164116">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__ud70efa4ce0b347d6bf020e2bfebd8543"><li id="EN-US_TOPIC_0000001233563213__l40cf334bad01482bb484414d7439e4aa"><strong id="EN-US_TOPIC_0000001233563213__adb840f445451490599bc07c26fb34f4d">on</strong>: Adds the dictionary to memory.</li><li id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_li21209881710"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b84235270615629">off</strong>: Does not add the dictionary to memory.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__aa23a2a8385e54253aa425db809a50eeb"><strong id="EN-US_TOPIC_0000001233563213__b6279428104838">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b56514852104838">on</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__scc473fb1be14410e8c9c80a6630b9c9b"><h4 class="sectiontitle">zhparser_multi_duality</h4><p id="EN-US_TOPIC_0000001233563213__a9e820f8ba824420aaa8255b23d9299e7"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0085032935_en-us_topic_0059778487_b21126121164652">Parameter description</strong>: Specifies whether Zhparser aggregates segments in long words with duality.</p>
<p id="EN-US_TOPIC_0000001233563213__p18402171519137"><strong id="EN-US_TOPIC_0000001233563213__b63561708502">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_p29284164116"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b263561164116">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__u2b1e268f44d7497ebcbc2e441009d0e5"><li id="EN-US_TOPIC_0000001233563213__l31c6615f1e6a43df9071c11c1a5f59ea"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b842352706151932">on</strong>: Aggregates segments in long words with duality.</li><li id="EN-US_TOPIC_0000001233563213__l7e9f5d488e154ee098ffed20ed408dbe"><strong id="EN-US_TOPIC_0000001233563213__b56108910104838">off</strong>: Does not aggregate segments in long words with duality.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__a430967350a3a4e50ad0519932a57fa18"><strong id="EN-US_TOPIC_0000001233563213__b39032958104838">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b15752303104838">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__saef1b85192c54a2ebc7313daa8b29c94"><h4 class="sectiontitle">zhparser_multi_short</h4><p id="EN-US_TOPIC_0000001233563213__a877078cd084d41a1b636eaa95faec23d"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0085032935_en-us_topic_0059778487_b6386695617335">Parameter description</strong>: Specifies whether Zhparser executes long words composite divide.</p>
<p id="EN-US_TOPIC_0000001233563213__p632382751313"><strong id="EN-US_TOPIC_0000001233563213__b18550130115010">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__abf42e6f3d9c345479a099004f5b8a3fe"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b30990495164116">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__ue7eddf4f858d42418f8fa278c3acb1cb"><li id="EN-US_TOPIC_0000001233563213__l0b5824f107734a11a7f4cde72cf24504"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b842352706152029">on</strong>: Performs compound segmentation for long words.</li><li id="EN-US_TOPIC_0000001233563213__le896cbe381f04f849ee917045d440af6"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b842352706152046">off</strong>: Does not perform compound segmentation for long words.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__a0d5ef4ebbc2847dab90c9d6f201afbc5"><strong id="EN-US_TOPIC_0000001233563213__b61542225104838">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b17009121104838">on</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__sa76de64bbeb5480880025c4cec598462"><h4 class="sectiontitle">zhparser_multi_zall</h4><p id="EN-US_TOPIC_0000001233563213__ac3bdd66ba1104367941050a6afd5d424"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0085032935_en-us_topic_0059778487_b1346442217511">Parameter description</strong>: Specifies whether Zhparser displays all single words individually.</p>
<p id="EN-US_TOPIC_0000001233563213__p8381113520134"><strong id="EN-US_TOPIC_0000001233563213__b12785190145017">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__a64a22988c85740eab5bd4a58d0729429"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b59741695164116">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__udb5591317c3940feaae4f924dc46b686"><li id="EN-US_TOPIC_0000001233563213__l84756c28ad1e453f94fd22bfbdf1d72d"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b842352706152632">on</strong>: Displays all single words separately.</li><li id="EN-US_TOPIC_0000001233563213__lc3e67384536844eaa07f5298d29bbf6f"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b842352706152718">off</strong>: Does not display all single words separately.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__ab0b45da7db6344c4a2cb7f1c45778e7e"><strong id="EN-US_TOPIC_0000001233563213__b66678085104838">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b63231859104838">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__s54302d6b9cdc464883ab4b438fa0778d"><h4 class="sectiontitle">zhparser_multi_zmain</h4><p id="EN-US_TOPIC_0000001233563213__a377eab3543f84d19abcac1b35e40e44b"><strong id="EN-US_TOPIC_0000001233563213__b23232995104838">Parameter description</strong>: Specifies whether Zhparser displays important single words separately.</p>
<p id="EN-US_TOPIC_0000001233563213__p197784426136"><strong id="EN-US_TOPIC_0000001233563213__b10131212506">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__a003cc69d8bcd48ddbea295ae49e383ac"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b42660784164116">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__u7073e353fa7a41d882be35029fd1b82e"><li id="EN-US_TOPIC_0000001233563213__lca3d352acf974d109c10589eb6a96c76"><strong id="EN-US_TOPIC_0000001233563213__b52669917104838">on</strong>: Displays important single words separately.</li><li id="EN-US_TOPIC_0000001233563213__l3b54fed1126f452dae86d17806f1e58c"><strong id="EN-US_TOPIC_0000001233563213__b47779347104838">off</strong>: Does not display important single words separately.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__a3c713aacaf134259bba2867191e15279"><strong id="EN-US_TOPIC_0000001233563213__b48144985104838">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b30651685104838">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__sa8182c3c3b9a42e4b0cabfbce51854e8"><h4 class="sectiontitle">zhparser_punctuation_ignore</h4><p id="EN-US_TOPIC_0000001233563213__ab8ae05b508a444b0892e8cc28dcc048c"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0085032935_en-us_topic_0059778487_b2661133917518">Parameter description</strong>: Specifies whether the Zhparser segmentation result ignores special characters including punctuations (\r and \n will not be ignored).</p>
<p id="EN-US_TOPIC_0000001233563213__p12899105091316"><strong id="EN-US_TOPIC_0000001233563213__b11205141185018">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__a21349b6307a94019b3ead21edb26d28d"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b40621983164116">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__u73f7fcf0d4ab486ea71e5311723bd4c8"><li id="EN-US_TOPIC_0000001233563213__lc32cfaee126243dbb5ab4208c9a01ee6"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b842352706153456">on</strong>: Ignores all the special characters including punctuations.</li><li id="EN-US_TOPIC_0000001233563213__le3ed8bbb11b94720a49ab4e18312e445"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b84235270615346">off</strong>: Does not ignore all the special characters including punctuations.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__a5fa30af929744c64a6eac16861eaaa32"><strong id="EN-US_TOPIC_0000001233563213__b4365965104838">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b39293686104838">on</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__sfcf3713397ba4ceebadf55d0f0d55770"><h4 class="sectiontitle">zhparser_seg_with_duality</h4><p id="EN-US_TOPIC_0000001233563213__a325441addef24045abec1427432219cf"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b56002691165129">Parameter description</strong>: Specifies whether Zhparser aggregates segments in long words with duality.</p>
<p id="EN-US_TOPIC_0000001233563213__p13126127191411"><strong id="EN-US_TOPIC_0000001233563213__b1636861135016">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__a152bd89ca3144238b0675cca1fbdcbd0"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778487_b55537011164116">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__u813d0d484cbd436391de302d3774c53d"><li id="EN-US_TOPIC_0000001233563213__l87dd2c17a040433786e48814f792920f"><strong id="EN-US_TOPIC_0000001233563213__b842352706153610">on</strong>: Aggregates segments in long words with duality.</li><li id="EN-US_TOPIC_0000001233563213__lac675355e3ea4265b0608b4c8160c780"><strong id="EN-US_TOPIC_0000001233563213__b842352706151932">off</strong>: Does not aggregate segments in long words with duality.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__a496854425d8545198267662ddac16e42"><strong id="EN-US_TOPIC_0000001233563213__b1331619901103619">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b1236838594103619">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section13787157164412"><a name="EN-US_TOPIC_0000001233563213__section13787157164412"></a><a name="section13787157164412"></a><h4 class="sectiontitle">acceleration_with_compute_pool</h4><p id="EN-US_TOPIC_0000001233563213__p10975810114419"><strong id="EN-US_TOPIC_0000001233563213__b842352706173719">Parameter description</strong>: Specifies whether to use the computing resource pool for acceleration when OBS is queried.</p>
<p id="EN-US_TOPIC_0000001233563213__p314317151418"><strong id="EN-US_TOPIC_0000001233563213__b15559316506">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__p199781410174410"><strong id="EN-US_TOPIC_0000001233563213__b29285174104838">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__ul13981101018449"><li id="EN-US_TOPIC_0000001233563213__li18983010184412"><strong id="EN-US_TOPIC_0000001233563213__b842352706174034">on</strong> indicates that the query covering OBS is accelerated based on the cost when the computing resource pool is available.</li><li id="EN-US_TOPIC_0000001233563213__li09851110114414"><strong id="EN-US_TOPIC_0000001233563213__b842352706174440">off</strong> indicates that no query is accelerated using the computing resource pool.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__p16987310154415"><strong id="EN-US_TOPIC_0000001233563213__b13450398104838">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b53944722104838">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section1980124735516"><a name="EN-US_TOPIC_0000001233563213__section1980124735516"></a><a name="section1980124735516"></a><h4 class="sectiontitle">behavior_compat_options</h4><p id="EN-US_TOPIC_0000001233563213__p13165133175914"><strong id="EN-US_TOPIC_0000001233563213__b11165173205911">Parameter description</strong>: Specifies database compatibility behavior. Multiple items are separated by commas (,).</p>
<p id="EN-US_TOPIC_0000001233563213__p15381657181413"><strong id="EN-US_TOPIC_0000001233563213__b870418215014">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__p1321515556296"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059779078_a2822ffdf039142ba9b5ab15e397e5521">Value range</strong>: a string</p>
<p id="EN-US_TOPIC_0000001233563213__p021715572919"><strong id="EN-US_TOPIC_0000001233563213__b19659826738">Default value</strong>: In upgrade scenarios, the default value of this parameter is the same as that in the cluster before the upgrade. When a new cluster is installed, the default value of this parameter is <strong id="EN-US_TOPIC_0000001233563213__b530319576311">check_function_conflicts</strong> to prevent serious problems caused by incorrect function attributes defined by users.</p>
<div class="note" id="EN-US_TOPIC_0000001233563213__n1b4fe0be7f3940b0ac755e711dc456d7"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001233563213__ul8436164984013"><li id="EN-US_TOPIC_0000001233563213__li66662166472">Currently, only <a href="#EN-US_TOPIC_0000001233563213__table182861153114812">Table 1</a> is supported.</li><li id="EN-US_TOPIC_0000001233563213__li73919863014">Multiple items are separated by commas (,), for example, <strong id="EN-US_TOPIC_0000001233563213__b4501102601713">set behavior_compat_options='end_month_calculate,display_leading_zero';</strong></li><li id="EN-US_TOPIC_0000001233563213__li117418359161"><strong id="EN-US_TOPIC_0000001233563213__b99860010581">strict_concat_functions</strong> and <strong id="EN-US_TOPIC_0000001233563213__b138371358586">strict_text_concat_td</strong> are mutually exclusive.</li></ul>
</div></div>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001233563213__table182861153114812"></a><a name="table182861153114812"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233563213__table182861153114812" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Compatibility configuration items</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233563213__row1128619535483"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.17.7.2.4.1.1"><p id="EN-US_TOPIC_0000001233563213__p192861053194814">Configuration Item</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="65%" id="mcps1.3.17.7.2.4.1.2"><p id="EN-US_TOPIC_0000001233563213__p10286553144814">Behavior</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.17.7.2.4.1.3"><p id="EN-US_TOPIC_0000001233563213__p178834429141">Applicable Compatibility Mode</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233563213__row2028605318483"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p152861153174819">display_leading_zero</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p192848725515">Specifies how floating point numbers are displayed.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul11299194763811"><li id="EN-US_TOPIC_0000001233563213__li3299204710383">If this item is not specified, for a decimal number between -1 and 1, the 0 before the decimal point is not displayed. For example, 0.25 is displayed as <strong id="EN-US_TOPIC_0000001233563213__b21421142163720">.25</strong>.</li><li id="EN-US_TOPIC_0000001233563213__li1654163310506">If this item is specified, for a decimal number between -1 and 1, the 0 before the decimal point is displayed. For example, 0.25 is displayed as <strong id="EN-US_TOPIC_0000001233563213__b670717494373">0.25</strong>.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__p2766164005012">For example, during data migration, if this parameter is not set during data import, when floating numbers are displayed or converted to strings, the leading zeros of the floating point numbers are omitted, causing an error message like this:</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563213__screen17365553204913"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">ERROR</span><span class="p">:</span><span class="w"> </span><span class="n">xxx</span><span class="w"> </span><span class="n">invalid</span><span class="w"> </span><span class="k">input</span><span class="w"> </span><span class="n">syntax</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="k">type</span><span class="w"> </span><span class="n">xxx</span>
<span class="n">DETAIL</span><span class="p">:</span><span class="w"> </span><span class="n">Token</span><span class="w"> </span><span class="ss">&quot;.&quot;</span><span class="w"> </span><span class="k">is</span><span class="w"> </span><span class="n">invalid</span>
</pre></div></td></tr></table></div>
</div>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p1488364210146">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p12331564155">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row14286165319484"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p15286253134812">end_month_calculate</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p12991318145719">Specifies the calculation logic of the add_months function.</p>
<p id="EN-US_TOPIC_0000001233563213__p43715241715">Assume that the two parameters of the add_months function are <strong id="EN-US_TOPIC_0000001233563213__b1567814339505">param1</strong> and <strong id="EN-US_TOPIC_0000001233563213__b156791933115014">param2</strong>, and that the sum of <strong id="EN-US_TOPIC_0000001233563213__b1467923315017">param1</strong> and <strong id="EN-US_TOPIC_0000001233563213__b36791333205015">param2</strong> is <strong id="EN-US_TOPIC_0000001233563213__b2068013318504">result</strong>.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul69601452123815"><li id="EN-US_TOPIC_0000001233563213__li6960552203818">If this item is not specified, and the <strong id="EN-US_TOPIC_0000001233563213__b783211493177">Day</strong> of <strong id="EN-US_TOPIC_0000001233563213__b18331749161711">param1</strong> indicates the last day of a month shorter than <strong id="EN-US_TOPIC_0000001233563213__b983444917176">result</strong>, the <strong id="EN-US_TOPIC_0000001233563213__b58348493177">Day</strong> in the calculation result will equal that in <strong id="EN-US_TOPIC_0000001233563213__b1583515494177">param1</strong>. For example:</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563213__screen568916248386"><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">add_months</span><span class="p">(</span><span class="s1">'2018-02-28'</span><span class="p">,</span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">dual</span><span class="p">;</span>
<span class="n">add_months</span>
<span class="c1">---------------------</span>
<span class="mi">2018</span><span class="o">-</span><span class="mi">05</span><span class="o">-</span><span class="mi">28</span><span class="w"> </span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</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>
<ul id="EN-US_TOPIC_0000001233563213__ul165115579383"><li id="EN-US_TOPIC_0000001233563213__li1365110578389">If this item is specified, and the <strong id="EN-US_TOPIC_0000001233563213__b54101855201716">Day</strong> of <strong id="EN-US_TOPIC_0000001233563213__b13411255101713">param1</strong> indicates the last day of a month shorter than <strong id="EN-US_TOPIC_0000001233563213__b741255519172">result</strong>, the <strong id="EN-US_TOPIC_0000001233563213__b24121055111715">Day</strong> in the calculation result will equal that in <strong id="EN-US_TOPIC_0000001233563213__b18412105519174">result</strong>. For example:</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563213__screen45031931103816"><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">add_months</span><span class="p">(</span><span class="s1">'2018-02-28'</span><span class="p">,</span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">dual</span><span class="p">;</span>
<span class="n">add_months</span>
<span class="c1">---------------------</span>
<span class="mi">2018</span><span class="o">-</span><span class="mi">05</span><span class="o">-</span><span class="mi">31</span><span class="w"> </span><span class="mi">00</span><span class="p">:</span><span class="mi">00</span><span class="p">:</span><span class="mi">00</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>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p688311420141">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p108501718171617">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row528635394812"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p128618539487">compat_analyze_sample</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p828635304814">Specifies the sampling behavior of the ANALYZE operation.</p>
<p id="EN-US_TOPIC_0000001233563213__p108691828173114">If this item is specified, the sample collected by the ANALYZE operation will be limited to around 30,000 records, controlling CN memory consumption and maintaining the stability of ANALYZE.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p1288314213141">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p16314015165">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p423764414166">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row84793168551"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p7480171620559">bind_schema_tablespace</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p7391102013556">Binds a schema with the tablespace with the same name.</p>
<p id="EN-US_TOPIC_0000001233563213__p164801516195514">If a tablespace name is the same as <em id="EN-US_TOPIC_0000001233563213__i202999218261">sche_name</em>, <strong id="EN-US_TOPIC_0000001233563213__b13316145810260">default_tablespace</strong> will also be set to <em id="EN-US_TOPIC_0000001233563213__i16811828102713">sche_name</em> if <strong id="EN-US_TOPIC_0000001233563213__b1755593632616">search_path</strong> is set to <em id="EN-US_TOPIC_0000001233563213__i118294117269">sche_name</em>.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p188311421147">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p1765425551711">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p465495561712">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row104641129185511"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p4465122914550">bind_procedure_searchpath</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p195111830125718">Specifies the search path of the database object for which no schema name is specified.</p>
<p id="EN-US_TOPIC_0000001233563213__p12261948214">If no schema name is specified for a stored procedure, the search is performed in the schema to which the stored procedure belongs.</p>
<p id="EN-US_TOPIC_0000001233563213__p716129629">If the stored procedure is not found, the following operations are performed:</p>
<ul id="EN-US_TOPIC_0000001233563213__ul7861812102420"><li id="EN-US_TOPIC_0000001233563213__li78617127245">If this item is not specified, the system reports an error and exits.</li><li id="EN-US_TOPIC_0000001233563213__li3861512172411">If this item is specified, the search continues based on the settings of <strong id="EN-US_TOPIC_0000001233563213__b380018437321">search_path</strong>. If the issue persists, the system reports an error and exits.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p12884144214149">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p1991386171813">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p19132631815">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row24411166214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p20442166924">correct_to_number</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p13214155316919">Controls the compatibility of the to_number() result.</p>
<p id="EN-US_TOPIC_0000001233563213__p104421662219">If this item is specified, the result of the <strong id="EN-US_TOPIC_0000001233563213__b17289724193611">to_number()</strong> function is the same as that of PG11. Otherwise, the result is the same as that of Oracle.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p7884124271420">ORA</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row789175471518"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p1289114540156">unbind_divide_bound</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p88921554101510">Controls the range check on the result of integer division.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul9514164310"><li id="EN-US_TOPIC_0000001233563213__li3517174310">If this item is not specified, the division result is checked. If the result is out of the range, an error is reported. In the following example, an out-of-range error is reported because the value of <strong id="EN-US_TOPIC_0000001233563213__b4155131145418">INT_MIN/(-1)</strong> is greater than the value of <strong id="EN-US_TOPIC_0000001233563213__b16187155185411">INT_MAX</strong>.</li></ul>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen1936029103116">SELECT (-2147483648)::int / (-1)::int;
ERROR: integer out of range</pre>
<ul id="EN-US_TOPIC_0000001233563213__ul17302829104411"><li id="EN-US_TOPIC_0000001233563213__li1330218293449">If this item is specified, the range of the division result does not need to be checked. In the following example, <strong id="EN-US_TOPIC_0000001233563213__b12657847161412">INT_MIN/(-1)</strong> can be used to obtain the output result <strong id="EN-US_TOPIC_0000001233563213__b174501719181513">INT_MAX+1</strong>.</li></ul>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen1937929113113">SELECT (-2147483648)::int / (-1)::int;
?column?
------------
2147483648
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p988484219143">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p9235131141810">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row482471810177"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p188261018181719">merge_update_multi</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p1182614187179">Specifies whether to perform an update when <strong id="EN-US_TOPIC_0000001233563213__b1562573811211">MERGE INTO</strong> is executed to match multiple rows.</p>
<p id="EN-US_TOPIC_0000001233563213__p185787144214">If this item is specified, no error is reported when multiple rows are matched. Otherwise, an error is reported (same as Oracle).</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p1488464241416">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p159815419181">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row335897172210"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p193597711223">disable_row_update_multi</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p53595742212">Specifies whether to perform an update when multiple rows of a row-store table are matched.</p>
<p id="EN-US_TOPIC_0000001233563213__p1088124714227">If this item is specified, an error is reported when multiple rows are matched. Otherwise, multiple rows can be matched and updated by default.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p13359776224">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p230115818230">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row648032118477"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p16481102116476">return_null_string</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p162371248164218">Specifies how to display the empty result (empty string '') of the lpad(), rpad(), repeat(), regexp_split_to_table(), and split_part() functions.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul828544001313"><li id="EN-US_TOPIC_0000001233563213__li14484281466">If this item is not specified, the empty string is displayed as <strong id="EN-US_TOPIC_0000001233563213__b88968202116">NULL</strong>.</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563213__screen17865171482915"><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="k">length</span><span class="p">(</span><span class="n">lpad</span><span class="p">(</span><span class="s1">'123'</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="s1">'*'</span><span class="p">))</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">dual</span><span class="p">;</span>
<span class="k">length</span>
<span class="c1">--------</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>
<ul id="EN-US_TOPIC_0000001233563213__ul75590181418"><li id="EN-US_TOPIC_0000001233563213__li8559201191418">If this item is specified, the empty string is displayed as single quotation marks ('').</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563213__screen104295208294"><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="k">length</span><span class="p">(</span><span class="n">lpad</span><span class="p">(</span><span class="s1">'123'</span><span class="p">,</span><span class="mi">0</span><span class="p">,</span><span class="s1">'*'</span><span class="p">))</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">dual</span><span class="p">;</span>
<span class="k">length</span>
<span class="c1">--------</span>
<span class="mi">0</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>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p388464271415">ORA</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row1255211543476"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p19552125434713">compat_concat_variadic</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p15521954134717">Specifies the compatibility of variadic results of the concat() and concat_ws() functions.</p>
<p id="EN-US_TOPIC_0000001233563213__p1060812139425">If this item is specified and a <strong id="EN-US_TOPIC_0000001233563213__b133202617118">concat</strong> function has a parameter of the <strong id="EN-US_TOPIC_0000001233563213__b4979104185120">variadic</strong> type, different result formats in Oracle and Teradata are retained. If this item is not specified and a <strong id="EN-US_TOPIC_0000001233563213__b737264118">concat</strong> function has a parameter of the <strong id="EN-US_TOPIC_0000001233563213__b13511649125112">variadic</strong> type, the result format of Oracle is retained for both Oracle and Teradata.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p188847426140">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p2070219931916">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row354815251562"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p145489251764">convert_string_digit_to_numeric</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p65481251568">Specifies the type casting priority for binary BOOL operations on the CHAR type and INT type.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul6547658121018"><li id="EN-US_TOPIC_0000001233563213__li95471758101014">If this item is not specified, the type casting priority is the same as that of PG9.6.</li><li id="EN-US_TOPIC_0000001233563213__li75397325428">After this item is configured, all binary BOOL operations of the CHAR type and INT type are forcibly converted to the NUMERIC type for computation.<p id="EN-US_TOPIC_0000001233563213__p05641332427"><a name="EN-US_TOPIC_0000001233563213__li75397325428"></a><a name="li75397325428"></a>After this configuration item is set, the CHAR types that are affected include BPCHAR, VARCHAR, NVARCHAR2, and TEXT, and the INT types that are affected include INT1, INT2, INT4, and INT8.</p>
</li></ul>
<div class="caution" id="EN-US_TOPIC_0000001233563213__note739001353612"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="EN-US_TOPIC_0000001233563213__p193901413163619">This configuration item is valid only for binary BOOL operation, for example, <strong id="EN-US_TOPIC_0000001233563213__b1075775615583">INT2&gt;TEXT</strong> and <strong id="EN-US_TOPIC_0000001233563213__b43281279594">INT4=BPCHAR</strong>. Non-BOOL operation is not affected. This configuration item does not support conversion of UNKNOWN operations such as <strong id="EN-US_TOPIC_0000001233563213__b1365915110013">INT&gt;'1.1'</strong>. After this configuration item is enabled, all BOOL operations of the CHAR and INT types are preferentially converted to the NUMERIC type for computation, which affects the computation performance of the database. When the JOIN column is a combination of affected types, the execution plan is affected.</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p192122911919">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p208842421146">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p165239353213">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row39091152163412"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p053818873311">check_function_conflicts</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p1053811811336">Controls the check of the custom <strong id="EN-US_TOPIC_0000001233563213__b16843122618437">plpgsql/SQL</strong> function attributes.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul412081553417"><li id="EN-US_TOPIC_0000001233563213__li171208151345">If this parameter is not specified, the <strong id="EN-US_TOPIC_0000001233563213__b942615468448">IMMUTABLE/STABLE/VOLATILE</strong> attributes of a custom function are not checked.</li><li id="EN-US_TOPIC_0000001233563213__li20102194924016">If this parameter is specified, the IMMUTABLE attribute of a custom function is checked. If the function contains a table or the STABLE/VOLATILE function, an error is reported during the function execution. In a custom function, a table or the STABLE/VOLATILE function conflicts with the IMMUTABLE attribute, thus function behaviors are not IMMUTABLE in this case.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__p17816175118402">For example, when this parameter is specified, an error is reported in the following scenarios:</p>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen2082242254018">CREATE OR replace FUNCTION sql_immutable (INTEGER)
RETURNS INTEGER AS 'SELECT a+$1 FROM shipping_schema.t4 WHERE a=1;'
LANGUAGE SQL IMMUTABLE
RETURNS NULL
ON NULL INPUT;
select sql_immutable(1);
ERROR: IMMUTABLE function cannot contain SQL statements with relation or Non-IMMUTABLE function.
CONTEXT: SQL function "sql_immutable" during startup
referenced column: sql_immutable</pre>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p988464241420">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p775273951912">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p16600134241917">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row7925175463114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p1044110536318">varray_verification</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p116759441535">Indicates whether to verify the array length and array type length. Compatible with <span id="EN-US_TOPIC_0000001233563213__text1104785342">GaussDB(DWS)</span> versions earlier than 8.1.0.</p>
<p id="EN-US_TOPIC_0000001233563213__p8616109164116">If this parameter is specified, the array length and array type length are not verified.</p>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen29944493612">Scenario 1
CREATE OR REPLACE PROCEDURE varray_verification
AS
TYPE org_varray_type IS varray(5) OF VARCHAR2(2);
v_org_varray org_varray_type;
BEGIN
v_org_varray(1) := '111'; --If the value exceeds the limit of <strong id="EN-US_TOPIC_0000001233563213__b0433240144113">VARCHAR2(2)</strong>, the setting will be consistent with that in the historical version and no verification is performed after configuring this option.
END;
/
Scenario 2
CREATE OR REPLACE PROCEDURE varray_verification_i3_1
AS
TYPE org_varray_type IS varray(2) OF NUMBER(2);
v_org_varray org_varray_type;
BEGIN
v_org_varray(3) := 1; --If the value exceeds the limit of <strong id="EN-US_TOPIC_0000001233563213__b163378574617">varray(2)</strong> specified for array length, the setting will be consistent with that in the historical version and no verification is performed after configuring this option.
END;
/ </pre>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p16884144281417">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p450865911198">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row746022743612"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p846142733618">strict_concat_functions</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p184611627133610">Indicates whether the <strong id="EN-US_TOPIC_0000001233563213__b35982510472">textanycat()</strong> and <strong id="EN-US_TOPIC_0000001233563213__b121572974713">anytextcat()</strong> functions are compatible with the return value if there are null parameters. This parameter and <strong id="EN-US_TOPIC_0000001233563213__b46752411118">strict_text_concat_td</strong> are mutually exclusive.</p>
<p id="EN-US_TOPIC_0000001233563213__p88621241164419">In MySQL-compatible mode, this parameter has no impact.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul17149104004220"><li id="EN-US_TOPIC_0000001233563213__li106593343532">If this configuration item is not specified, the returned values of the <strong id="EN-US_TOPIC_0000001233563213__b13267114714481">textanycat()</strong> and <strong id="EN-US_TOPIC_0000001233563213__b18208185117488">anytextcat()</strong> functions are the same as those in the Oracle database.</li><li id="EN-US_TOPIC_0000001233563213__li614914012424">When this configuration item is specified, if there are null parameters in the <strong id="EN-US_TOPIC_0000001233563213__b1353019935019">textanycat()</strong> and <strong id="EN-US_TOPIC_0000001233563213__b376281318503">anytextcat()</strong> functions, the returned value is also null. Different result formats in Oracle and Teradata are retained.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__p208515481577">If this configuration item is not specified, the returned values of the <strong id="EN-US_TOPIC_0000001233563213__b169441425195320">textanycat()</strong> and <strong id="EN-US_TOPIC_0000001233563213__b5944202519536">anytextcat()</strong> functions are the same as those in the Oracle database.</p>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen19952121214019">SELECT textanycat('gauss', cast(NULL as BOOLEAN));
textanycat
------------
gauss
(1 row)
SELECT 'gauss' || cast(NULL as BOOLEAN); -- In this case, the <strong id="EN-US_TOPIC_0000001233563213__b1678716913544">||</strong> operator is converted to the <strong id="EN-US_TOPIC_0000001233563213__b2221162535419">textanycat</strong> function.
?column?
----------
gauss
(1 row)</pre>
<p id="EN-US_TOPIC_0000001233563213__p742531014020">When setting this configuration item, retain the results that are different from those in Oracle and Teradata:</p>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen027920589614">SELECT textanycat('gauss', cast(NULL as BOOLEAN));
textanycat
------------
(1 row)
SELECT 'gauss' || cast(NULL as BOOLEAN); -- In this case, the <strong id="EN-US_TOPIC_0000001233563213__b0489154917412">||</strong> operator is converted to the <strong id="EN-US_TOPIC_0000001233563213__b8490949154113">textanycat</strong> function.
?column?
----------
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p0884642131416">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p19748216202015">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row1911016291135"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p101111229181318">strict_text_concat_td</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p15533514132">In Teradata compatible mode, whether the <strong id="EN-US_TOPIC_0000001233563213__b59466391833">textcat()</strong>, <strong id="EN-US_TOPIC_0000001233563213__b469774317112">textanycat()</strong> and <strong id="EN-US_TOPIC_0000001233563213__b469710433115">anytextcat()</strong> functions are compatible with the return value if there are null parameters. This parameter and <strong id="EN-US_TOPIC_0000001233563213__b1029134520117">strict_concat_functions</strong> are mutually exclusive.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul1597911188145"><li id="EN-US_TOPIC_0000001233563213__li149790185149">If this parameter is not specified, the return values of the <strong id="EN-US_TOPIC_0000001233563213__b3337133110416">textcat()</strong>, <strong id="EN-US_TOPIC_0000001233563213__b13926348410">textanycat()</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b16449143814416">anytextcat()</strong> functions in Teradata-compatible mode are the same as those in GaussDB(DWS).</li><li id="EN-US_TOPIC_0000001233563213__li61241325101411">When this parameter is specified, if the <strong id="EN-US_TOPIC_0000001233563213__b13513121789">textcat()</strong>, <strong id="EN-US_TOPIC_0000001233563213__b5987424380">textanycat()</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b203061293817">anytextcat()</strong> functions contain any null parameter values, the return value is null in the Teradata-compatible mode.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__p155314511137">If this parameter is not specified, the returned values of the <strong id="EN-US_TOPIC_0000001233563213__b1935614538912">textcat()</strong>, <strong id="EN-US_TOPIC_0000001233563213__b18603926770">textanycat()</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b86045261773">anytextcat()</strong> functions are the same as those in the GaussDB(DWS).</p>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen1971164611381">td_compatibility_db=# SELECT textcat('abc', NULL);
textcat
---------
abc
(1 row)</pre>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen19291174163814">td_compatibility_db=# SELECT 'abc' || NULL; -- In this case, the operator <strong id="EN-US_TOPIC_0000001233563213__b20196154153814">||</strong> is converted to the <strong id="EN-US_TOPIC_0000001233563213__b43686248389">textcat()</strong> function.
?column?
----------
abc
(1 row)</pre>
<p id="EN-US_TOPIC_0000001233563213__p85418517138">When this parameter is specified, <strong id="EN-US_TOPIC_0000001233563213__b165283518112">NULL</strong> is returned if any of the <strong id="EN-US_TOPIC_0000001233563213__b15558356181116">textcat()</strong>, <strong id="EN-US_TOPIC_0000001233563213__b1186015914111">textanycat()</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b568412415125">anytextcat()</strong> functions returns a null value.</p>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen15394193163818">td_compatibility_db=# SELECT textcat('abc', NULL);
textcat
---------
(1 row)</pre>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen85011817133811">td_compatibility_db=# SELECT 'abc' || NULL;
?column?
----------
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p1788474271419">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row5836132815209"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p168361428182019">compat_display_ref_table</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p1228215413442">Sets the column display format in the view.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul9774202613394"><li id="EN-US_TOPIC_0000001233563213__li33151274444">If this parameter is not specified, the prefix is used by default, in the <strong id="EN-US_TOPIC_0000001233563213__b155914291359">tab.col</strong> format.</li><li id="EN-US_TOPIC_0000001233563213__li1677418264393">Specify this parameter to the same original definition. It is displayed only when the original definition contains a prefix.</li></ul>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen4728155371718">SET behavior_compat_options='compat_display_ref_table';
CREATE OR REPLACE VIEW viewtest2 AS SELECT a.c1, <strong id="EN-US_TOPIC_0000001233563213__b15787105351717">c2</strong>, a.c3, 0 AS c4 FROM viewtest_tbl a;
SELECT pg_get_viewdef('viewtest2');
pg_get_viewdef
-----------------------------------------------------
SELECT a.c1, <strong id="EN-US_TOPIC_0000001233563213__b137881953171711">c2</strong>, a.c3, 0 AS c4 FROM viewtest_tbl a;
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p1788417423147">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p115131931132014">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row10566144131"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p16578144138">para_support_set_func</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p106792026132819">Whether the input parameters of the <strong id="EN-US_TOPIC_0000001233563213__b169381925175820">COALESCE()</strong>, <strong id="EN-US_TOPIC_0000001233563213__b236082812588">NVL()</strong>, <strong id="EN-US_TOPIC_0000001233563213__b1863233025820">GREATEST()</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b16901113235820">LEAST()</strong> functions in a column-store table support multiple result set expressions.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul27511328202814"><li id="EN-US_TOPIC_0000001233563213__li0751162872820">If this item is not specified and the input parameter contains multiple result set expressions, an error is reported, indicating that the function is not supported.</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563213__screen11972151615132"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
<span class="normal">2</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="k">COALESCE</span><span class="p">(</span><span class="n">regexp_split_to_table</span><span class="p">(</span><span class="n">c3</span><span class="p">,</span><span class="s1">'#'</span><span class="p">),</span><span class="w"> </span><span class="n">regexp_split_to_table</span><span class="p">(</span><span class="n">c3</span><span class="p">,</span><span class="s1">'#'</span><span class="p">))</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">regexp_ext2_tb1</span><span class="w"> </span><span class="k">ORDER</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="k">LIMIT</span><span class="w"> </span><span class="mi">5</span><span class="p">;</span>
<span class="n">ERROR</span><span class="p">:</span><span class="w"> </span><span class="k">set</span><span class="o">-</span><span class="n">valued</span><span class="w"> </span><span class="k">function</span><span class="w"> </span><span class="k">called</span><span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="n">context</span><span class="w"> </span><span class="n">that</span><span class="w"> </span><span class="n">cannot</span><span class="w"> </span><span class="n">accept</span><span class="w"> </span><span class="n">a</span><span class="w"> </span><span class="k">set</span>
</pre></div></td></tr></table></div>
</div>
<ul id="EN-US_TOPIC_0000001233563213__ul15972816121317"><li id="EN-US_TOPIC_0000001233563213__li12972111671315">When this configuration item is specified, the function input parameter can contain multiple result set expressions.</li></ul>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563213__screen897241613137"><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></pre></div></td><td class="code"><div><pre><span></span><span class="k">SELECT</span><span class="w"> </span><span class="k">COALESCE</span><span class="p">(</span><span class="n">regexp_split_to_table</span><span class="p">(</span><span class="n">c3</span><span class="p">,</span><span class="s1">'#'</span><span class="p">),</span><span class="w"> </span><span class="n">regexp_split_to_table</span><span class="p">(</span><span class="n">c3</span><span class="p">,</span><span class="s1">'#'</span><span class="p">))</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">regexp_ext2_tb1</span><span class="w"> </span><span class="k">ORDER</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="k">LIMIT</span><span class="w"> </span><span class="mi">5</span><span class="p">;</span>
<span class="w"> </span><span class="k">coalesce</span>
<span class="c1">----------</span>
<span class="w"> </span><span class="n">a</span>
<span class="w"> </span><span class="n">a</span>
<span class="w"> </span><span class="n">a</span>
<span class="w"> </span><span class="n">a</span>
<span class="w"> </span><span class="n">a</span>
<span class="p">(</span><span class="mi">5</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p2088464211416">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p1126518432201">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row138715183612"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p687141816613">disable_select_truncate_parallel</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p121471130144216">Controls the DDL lock level such as TRUNCATE in a partitioned table.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul1998332402"><li id="EN-US_TOPIC_0000001233563213__li2937113774215">If this item is specified, the concurrent execution of TRUNCATE and DML operations (such as SELECT) on different partitions is forbidden, and the fast query shipping (FQS) of the SELECT operation on the partitioned table is allowed. You can set this parameter in the OLTP database, where there are many simple queries on partitioned tables, and there is no requirement for concurrent TRUNCATE and DML operations on different partitions.</li><li id="EN-US_TOPIC_0000001233563213__li16992338403">If this item is not specified, SELECT and TRUNCATE operations can be concurrently performed on different partitions in a partitioned table, and the FQS of the partitioned table is disabled to avoid possible inconsistency.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p88841242171420">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p784955318206">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p185565713206">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row128641132102018"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p148656325208">bpchar_text_without_rtrim</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p46011656154113">In Teradata-compatible mode, controls the space to be retained on the right during the character conversion from <strong id="EN-US_TOPIC_0000001233563213__b54521313162915">bpchar</strong> to <strong id="EN-US_TOPIC_0000001233563213__b16453013182915">text</strong>. If the actual length is less than the length specified by <strong id="EN-US_TOPIC_0000001233563213__b144551713202918">bpchar</strong>, spaces are added to the value to be compatible with the Teradata style of the <strong id="EN-US_TOPIC_0000001233563213__b745681322916">bpchar</strong> character string.</p>
<p id="EN-US_TOPIC_0000001233563213__p171346597418">Currently, ignoring spaces at the end of a string for comparison is not supported. If the concatenated string contains spaces at the end, the comparison is space-sensitive.</p>
<p id="EN-US_TOPIC_0000001233563213__p2865183213202">The following is an example:</p>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen1724953632916">td_compatibility_db=# SELECT length('a'::char(10)::text);
length
--------
10
(1 row)
td_compatibility_db=# SELECT length('a'||'a'::char(10));
length
--------
11
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p78841442141420">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row1556311281443"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p155641828246">convert_empty_str_to_null_td</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p756402817415">In Teradata-compatible mode, controls the <strong id="EN-US_TOPIC_0000001233563213__b1308194803312">to_date</strong>, <strong id="EN-US_TOPIC_0000001233563213__b1679119514334">to_timestamp</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b10476185420335">to_number</strong> type conversion functions to return <strong id="EN-US_TOPIC_0000001233563213__b5884210338">null</strong> when they encounter empty strings, and controls the format of the return value when the <strong id="EN-US_TOPIC_0000001233563213__b121863149409">to_char</strong> function encounters an input parameter of the date type.</p>
<p id="EN-US_TOPIC_0000001233563213__p1221642572614">Example:</p>
<p id="EN-US_TOPIC_0000001233563213__p15928103421418">If this parameter is not specified:</p>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen17963227543">td_compatibility_db=# SELECT to_number('');
to_number
-----------
0
(1 row)
td_compatibility_db=# SELECT to_date('');
ERROR: the format is not correct
DETAIL: invalid date length "0", must between 8 and 10.
CONTEXT: referenced column: to_date
td_compatibility_db=# SELECT to_timestamp('');
to_timestamp
------------------------
0001-01-01 00:00:00 BC
(1 row)
td_compatibility_db=# SELECT to_char(date '2020-11-16');
to_char
------------------------
2020-11-16 00:00:00+08
(1 row)</pre>
<p id="EN-US_TOPIC_0000001233563213__p2441121814548">If this parameter is specified, and parameters of <strong id="EN-US_TOPIC_0000001233563213__b1990214504472">to_number</strong>, <strong id="EN-US_TOPIC_0000001233563213__b2847175316471">to_date</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b458718584818">to_timestamp</strong> functions contain empty strings:</p>
<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen6912231378">td_compatibility_db=# SELECT to_number('');
to_number
-----------
(1 row)
td_compatibility_db=# SELECT to_date('');
to_date
---------
(1 row)
td_compatibility_db=# SELECT to_timestamp('');
to_timestamp
--------------
(1 row)
td_compatibility_db=# SELECT to_char(date '2020-11-16');
to_char
------------
2020/11/16
(1 row)</pre>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p58841942181418">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row1842115242357"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p1596318916134">disable_case_specific</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p1596419910135">Determines whether to ignore case sensitivity during character type match. This parameter is valid only in Teradata-compatible mode.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul13781258122112"><li id="EN-US_TOPIC_0000001233563213__li13781195882116">If this item is not specified, characters are case sensitive during character type match.</li><li id="EN-US_TOPIC_0000001233563213__li1283520399225">If this item is specified, characters are case insensitive during character type match.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__p1335975242520">After being specified, this item will affect five character types (<strong id="EN-US_TOPIC_0000001233563213__b1619315413397">CHAR</strong>, <strong id="EN-US_TOPIC_0000001233563213__b199631442103917">TEXT</strong>, <strong id="EN-US_TOPIC_0000001233563213__b22261344173913">BPCHAR</strong>, <strong id="EN-US_TOPIC_0000001233563213__b1239154833915">VARCHAR</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b4556154913918">NVARCHAR</strong>), 12 operators (<strong id="EN-US_TOPIC_0000001233563213__b138521818173917">&lt;</strong>, <strong id="EN-US_TOPIC_0000001233563213__b163303208391">&gt;</strong>, <strong id="EN-US_TOPIC_0000001233563213__b6620142118398">=</strong>, <strong id="EN-US_TOPIC_0000001233563213__b57558232391">&gt;=</strong>, <strong id="EN-US_TOPIC_0000001233563213__b35021225153911">&lt;=</strong>, <strong id="EN-US_TOPIC_0000001233563213__b1843152713913">!=</strong>, <strong id="EN-US_TOPIC_0000001233563213__b1568432918395">&lt;&gt;</strong>, <strong id="EN-US_TOPIC_0000001233563213__b1938733173918">!=</strong>, <strong id="EN-US_TOPIC_0000001233563213__b7763193223911">like</strong>, <strong id="EN-US_TOPIC_0000001233563213__b15668835173911">not like</strong>, <strong id="EN-US_TOPIC_0000001233563213__b15573737103916">in</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b867014391393">not in</strong>), and expressions <strong id="EN-US_TOPIC_0000001233563213__b14721139203913">case when</strong> and <strong id="EN-US_TOPIC_0000001233563213__b016021413390">decode</strong>.</p>
<div class="caution" id="EN-US_TOPIC_0000001233563213__note17794618133816"><span class="cautiontitle"> CAUTION: </span><div class="cautionbody"><p id="EN-US_TOPIC_0000001233563213__p0794181819384">After this item is enabled, the <strong id="EN-US_TOPIC_0000001233563213__b568219289408">UPPER</strong> function is added before the character type, which affects the estimation logic. Therefore, an enhanced estimation model is required. (Suggested settings: <strong id="EN-US_TOPIC_0000001233563213__b179119814115">cost_param=16</strong>, <strong id="EN-US_TOPIC_0000001233563213__b3995413134111">cost_model_version = 1</strong>, <strong id="EN-US_TOPIC_0000001233563213__b16168170413">join_num_distinct=-20</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b89015295414">qual_num_distinct=200</strong>)</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p15884134201411">TD</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row11741340124816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p574174064816">enable_interval_to_text</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p14704165931714">Controls the implicit conversion from the <strong id="EN-US_TOPIC_0000001233563213__b1988353724720">interval</strong> type to the <strong id="EN-US_TOPIC_0000001233563213__b1426104317477">text</strong> type.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul9761039187"><li id="EN-US_TOPIC_0000001233563213__li5771939189">When this option is enabled, the implicit conversion from the <strong id="EN-US_TOPIC_0000001233563213__b245985513477">interval</strong> type to the <strong id="EN-US_TOPIC_0000001233563213__b5865135874716">text</strong> type is supported.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen711802005214">SELECT TO_DATE('20200923', 'yyyymmdd') - TO_DATE('20200920', 'yyyymmdd') = '3'::text;
?column?
----------
f
(1 row)</pre>
</li><li id="EN-US_TOPIC_0000001233563213__li1351858151812">When this option is disabled, the implicit conversion from the <strong id="EN-US_TOPIC_0000001233563213__b1051112117489">interval</strong> type to the <strong id="EN-US_TOPIC_0000001233563213__b35761324204811">text</strong> type is not supported.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen1053048151810">SELECT TO_DATE('20200923', 'yyyymmdd') - TO_DATE('20200920', 'yyyymmdd') = '3'::text;
?column?
----------
t
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p1741440174814">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p1010802816555">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p8444132919557">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row32541352436"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p11255103594312">case_insensitive</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p255115383413">In MySQL-compatible mode, configure this parameter to specify the case-insensitive input parameters of the <strong id="EN-US_TOPIC_0000001233563213__b183509234404">locate</strong>, <strong id="EN-US_TOPIC_0000001233563213__b3158272405">strpos</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b106270317404">instr</strong> string functions.</p>
<p id="EN-US_TOPIC_0000001233563213__p9597136375">Currently, this parameter is not configured by default. That is, the input parameter is case-sensitive.</p>
<p id="EN-US_TOPIC_0000001233563213__p167084824916">The following shows an example:</p>
<ul id="EN-US_TOPIC_0000001233563213__ul3391155295516"><li id="EN-US_TOPIC_0000001233563213__li203910527550">If this parameter is not configured, the input parameter is case-sensitive.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen6392738125312">mysql_compatibility_db=# SELECT LOCATE('sub', 'Substr');
locate
--------
0
(1 row)</pre>
</li></ul>
<ul id="EN-US_TOPIC_0000001233563213__ul174851591568"><li id="EN-US_TOPIC_0000001233563213__li104858955610">If this parameter is configured, the input parameter is case-insensitive.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen831932465515">mysql_compatibility_db=# SELECT LOCATE('sub', 'Substr');
locate
--------
1
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p15255163574316">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row1840231143519"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p114053113357">inherit_not_null_strict_func</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p14053143518">Controls the original <strong id="EN-US_TOPIC_0000001233563213__b1430715384126">strict</strong> attribute of a function. A function with one parameter can transfer the <strong id="EN-US_TOPIC_0000001233563213__b11180175212122">NOT NULL</strong> attribute. func(x) is used an example. If func() is the <strong id="EN-US_TOPIC_0000001233563213__b1441251671819">strict</strong> attribute and x contains the <strong id="EN-US_TOPIC_0000001233563213__b661162616182">NOT NULL</strong> constraint, func(x) also contains the <strong id="EN-US_TOPIC_0000001233563213__b365811327184">NOT NULL</strong> constraint.</p>
<p id="EN-US_TOPIC_0000001233563213__p15618484019">The compatible configuration item is effective in some optimization scenarios, for example, <strong id="EN-US_TOPIC_0000001233563213__b201791853101317">NOT IN</strong> and <strong id="EN-US_TOPIC_0000001233563213__b1432317016141">COUNT(DISTINCT)</strong> optimization. However, the optimization results may be incorrect in specific scenarios.</p>
<p id="EN-US_TOPIC_0000001233563213__p43125376418">Currently, this parameter is not configured by default to ensure that the result is correct. However, the performance may be rolled back. If an error occurs, you can set this parameter to roll back to the historical version.</p>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p84173163510">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p14083610403">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p1319219226257">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row185881912105010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p058981295018">disable_compat_minmax_expr_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p172141644145115">Specifies the method for processing the input parameter <strong id="EN-US_TOPIC_0000001233563213__b1386614262314">null</strong> in the <strong id="EN-US_TOPIC_0000001233563213__b7283171031915">greatest</strong>/<strong id="EN-US_TOPIC_0000001233563213__b16236141516198">least</strong> expression in MySQL-compatible mode.</p>
<p id="EN-US_TOPIC_0000001233563213__p128931731195219">You can configure this parameter to roll back to a historical version.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul1963516411923"><li id="EN-US_TOPIC_0000001233563213__li1963524113219">If this parameter is not configured and the input parameter is <strong id="EN-US_TOPIC_0000001233563213__b1914556142213">null</strong>, <strong id="EN-US_TOPIC_0000001233563213__b692817586228">null</strong> is returned.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen136355411127">mysql_compatibility_db=# SELECT greatest(1, 2, null), least(1, 2, null);
greatest | least
----------+-------
|
(1 row)</pre>
</li><li id="EN-US_TOPIC_0000001233563213__li1463519411328">If this parameter is configured, the maximum or minimum value of non-null parameters is returned.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen1063517412219">mysql_compatibility_db=# SELECT greatest(1, 2, null), least(1, 2, null);
greatest | least
----------+-------
2 | 1
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p105890126505">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row1459201515019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p1445991520505">disable_compat_substr_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p13560131615553">Specifies the behavior of the <strong id="EN-US_TOPIC_0000001233563213__b18441454172412">substr</strong>/<strong id="EN-US_TOPIC_0000001233563213__b19528185720245">substring</strong> function when the start position pos is ≤ 0 in MySQL-compatible mode.</p>
<p id="EN-US_TOPIC_0000001233563213__p10211144917100">You can configure this parameter to roll back to a historical version.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul18845114413214"><li id="EN-US_TOPIC_0000001233563213__li178451044829">If this parameter is not configured, that is, an empty string is returned when pos = 0. When pos &lt; 0, <strong id="EN-US_TOPIC_0000001233563213__b88481115182712">TRUNCATE</strong> starts from the last |<em id="EN-US_TOPIC_0000001233563213__i19368174718254">pos</em>| character on.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen284510442212">mysql_compatibility_db=# SELECT substr('helloworld',0);
substr
--------
(1 row)
mysql_compatibility_db=# SELECT substring('helloworld',0),substring('helloworld',-2,4);
substring | substring
-----------+-----------
| ld
(1 row)</pre>
</li><li id="EN-US_TOPIC_0000001233563213__li1684511441724">If this parameter is configured and pos is ≤ 0, characters are truncated from the left.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen1884515441216">mysql_compatibility_db=# SELECT substr('helloworld',0);
substr
------------
helloworld
(1 row)
mysql_compatibility_db=# SELECT substring('helloworld',0),substring('helloworld',-2,4);
substring | substring
------------+-----------
helloworld | h
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p2459715145015">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row86341911505"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p1064111985011">disable_compat_trim_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p1564141817556">Specifies the method for processing the input parameter in the <strong id="EN-US_TOPIC_0000001233563213__b956910343514">trim</strong>/<strong id="EN-US_TOPIC_0000001233563213__b757610316354">ltrim</strong>/<strong id="EN-US_TOPIC_0000001233563213__b51614149365">rtrim</strong> function in MySQL-compatible mode.</p>
<p id="EN-US_TOPIC_0000001233563213__p162721952201010">You can configure this parameter to roll back to a historical version.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul74698470210"><li id="EN-US_TOPIC_0000001233563213__li646911472210">If this parameter is not configured, the entire substring is matched.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen84697471722">mysql_compatibility_db=# SELECT trim('{}{name}{}','{}'),trim('xyznamezyx','xyz');
btrim | btrim
--------+---------
{name} | namezyx
(1 row)</pre>
</li><li id="EN-US_TOPIC_0000001233563213__li14698471225">If this parameter is configured, a single character in the character set is matched.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen174697471623">mysql_compatibility_db=# SELECT trim('{}{name}{}','{}'),trim('xyznamezyx','xyz');
btrim | btrim
-------+-------
name | name
(1 row)</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p96441915016">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row2431042202416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p1282812118149">light_object_mtime</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p10828151181414">Specifies whether the <strong id="EN-US_TOPIC_0000001233563213__b203461145245">mtime</strong> column in the <strong id="EN-US_TOPIC_0000001233563213__b8352945944">pg_object</strong> system catalog records object operations.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul4791154616244"><li id="EN-US_TOPIC_0000001233563213__li179110464245">If this parameter is configured, the <strong id="EN-US_TOPIC_0000001233563213__b547918120512">GRANT</strong>, <strong id="EN-US_TOPIC_0000001233563213__b947919117515">REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b148061353">TRUNCATE</strong> operations are not recorded by <strong id="EN-US_TOPIC_0000001233563213__b1248021156">mtime</strong>, that is, the <strong id="EN-US_TOPIC_0000001233563213__b54811419515">mtime</strong> column is not updated.</li><li id="EN-US_TOPIC_0000001233563213__li352920498245">If this parameter is not configured (by default), the <strong id="EN-US_TOPIC_0000001233563213__b143161351163">ALTER</strong>, <strong id="EN-US_TOPIC_0000001233563213__b1531618511663">COMMENT</strong>, <strong id="EN-US_TOPIC_0000001233563213__b1531615511462">GRANT</strong>, <strong id="EN-US_TOPIC_0000001233563213__b131715113617">REVOKE</strong>, and <strong id="EN-US_TOPIC_0000001233563213__b133170511063">TRUNCATE</strong> operations are recorded by <strong id="EN-US_TOPIC_0000001233563213__b1531745117612">mtime</strong>, that is, the <strong id="EN-US_TOPIC_0000001233563213__b103176511260">mtime</strong> column is updated.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p582814115143">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p1191619155240">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p135317192245">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row1677911116016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p678020117018">disable_including_all_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p185721447105818">In MySQL-compatible mode, this parameter controls whether the <strong id="EN-US_TOPIC_0000001233563213__b1016218912219">CREATE TABLE...LIKE</strong> syntax is <strong id="EN-US_TOPIC_0000001233563213__b1035719235232">INCLUDING_ALL</strong>.</p>
<p id="EN-US_TOPIC_0000001233563213__p47802112010">By default, this parameter is not set. That is, in MySQL compatibility mode, <strong id="EN-US_TOPIC_0000001233563213__b727462115241">CREATE TABLE...</strong> <strong id="EN-US_TOPIC_0000001233563213__b81891733132415">LIKE</strong> syntax is <strong id="EN-US_TOPIC_0000001233563213__b1454893772415">INCLUDING_ALL</strong>.</p>
<p id="EN-US_TOPIC_0000001233563213__p11477154417316">Set this parameter to roll back to a historical version.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul385811471247"><li id="EN-US_TOPIC_0000001233563213__li108589477414">If this parameter is not set, in MySQL-compatible mode, the <strong id="EN-US_TOPIC_0000001233563213__b12452155116263">CREATE TABLE...</strong> <strong id="EN-US_TOPIC_0000001233563213__b17410702276">LIKE</strong> syntax is in <strong id="EN-US_TOPIC_0000001233563213__b261217101273">INCLUDING_ALL</strong>.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen16723119151419">mysql_compatibility_db=# CREATE TABLE mysql_like(id int, name varchar(10), score int) distribute by hash(id) COMMENT 'mysql_like';
CREATE TABLE
mysql_compatibility_db=# CREATE index index_like on mysql_like(name);
CREATE INDEX
mysql_compatibility_db=# \d+ mysql_like;
Table "public.mysql_like"
Column | Type | Modifiers | Storage | Stats target | Description
--------+-----------------------+-----------+----------+--------------+-------------
id | integer | | plain | |
name | character varying(10) | | extended | |
score | integer | | plain | |
Indexes:
"index_like" btree (name) TABLESPACE pg_default
Has OIDs: no
Distribute By: HASH(id)
Location Nodes: ALL DATANODES
Options: orientation=row, compression=no
mysql_compatibility_db=# CREATE table copy_like like mysql_like;
CREATE TABLE
mysql_compatibility_db=# \d+ copy_like;
Table "public.copy_like"
Column | Type | Modifiers | Storage | Stats target | Description
--------+-----------------------+-----------+----------+--------------+-------------
id | integer | | plain | |
name | character varying(10) | | extended | |
score | integer | | plain | |
Indexes:
"copy_like_name_idx" btree (name) TABLESPACE pg_default
Has OIDs: no
Distribute By: HASH(id)
Location Nodes: ALL DATANODES
Options: orientation=row, compression=no</pre>
</li><li id="EN-US_TOPIC_0000001233563213__li59053321655">If this parameter is set, in MySQL-compatible mode, the <strong id="EN-US_TOPIC_0000001233563213__b8944928182711">CREATE TABLE...</strong> <strong id="EN-US_TOPIC_0000001233563213__b91901031284">LIKE</strong> syntax is empty.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen875813357147">mysql_compatibility_db=# SET behavior_compat_options = 'disable_including_all_mysql';
SET
mysql_compatibility_db=# CREATE TABLE mysql_copy like mysql_like;
NOTICE: The 'DISTRIBUTE BY' clause is not specified. Using round-robin as the distribution mode by default.
HINT: Please use 'DISTRIBUTE BY' clause to specify suitable data distribution column.
CREATE TABLE
mysql_db=# \d+ mysql_copy;
Table "public.mysql_copy"
Column | Type | Modifiers | Storage | Stats target | Description
--------+-----------------------+-----------+----------+--------------+-------------
id | integer | | plain | |
name | character varying(10) | | extended | |
score | integer | | plain | |
Has OIDs: no
Distribute By: ROUND ROBIN
Location Nodes: ALL DATANODES
Options: orientation=row, compression=no</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p1078018111905">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row101341716181417"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p1134016141415">cte_onetime_inline</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p61345169145">Indicates whether to execute <strong id="EN-US_TOPIC_0000001233563213__b2841121514117">inline</strong> for non-stream plans.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul025414581299"><li id="EN-US_TOPIC_0000001233563213__li896148193417">When this parameter is set, the CTE that is not in a stream plan and is referenced only once executes <strong id="EN-US_TOPIC_0000001233563213__b389511353253">inline</strong>.</li><li id="EN-US_TOPIC_0000001233563213__li1525545862913">If this parameter is not set, the CTE that is not in a stream plan and is referenced only once does not execute <strong id="EN-US_TOPIC_0000001233563213__b92761939262">inline</strong>.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p6134191681415">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p4141993188">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p8352314131819">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row589732354914"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p1689719231494">skip_first_after_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p1689762364916">Determines whether to ignore the <strong id="EN-US_TOPIC_0000001233563213__b668249162910">FIRST/AFTER colname</strong> syntax in <strong id="EN-US_TOPIC_0000001233563213__b186851110113016">ALTER TABLE ADD/MODIFY/CHANGE COLUMN</strong> in MySQL compatibility mode.</p>
<ul id="EN-US_TOPIC_0000001233563213__ul1242711435541"><li id="EN-US_TOPIC_0000001233563213__li1142718434546">If this parameter is set, the <strong id="EN-US_TOPIC_0000001233563213__b1194674153014">FIRST/AFTER colname</strong> syntax is ignored and executing this syntax does not cause errors<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen12882950205714">mysql_compatibility_db=# SET behavior_compat_options = 'skip_first_after_mysql';
mysql_compatibility_db=# ALTER TABLE t1 add column b text after a;
ALTER TABLE</pre>
</li></ul>
<ul id="EN-US_TOPIC_0000001233563213__ul8424114518544"><li id="EN-US_TOPIC_0000001233563213__li569062710552">If this parameter is not set, the <strong id="EN-US_TOPIC_0000001233563213__b168151916174019">FIRST/AFTER colname</strong> syntax is not supported, and executing this syntax causes error.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen9591115719570">mysql_compatibility_db=# SET behavior_compat_options = '';
mysql_compatibility_db=# ALTER TABLE t1 add column b text after a;
ERROR: FIRST/AFTER is not yet supported.</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p19897142318493">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row171085224328"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p191081522183217">enable_division_by_zero_mysql</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p391542912405">Specifies whether to report an error when the divisor is 0 in MySQL compatibility mode. (This configuration item is supported only by clusters of 8.1.3.110 and later versions.)</p>
<ul id="EN-US_TOPIC_0000001233563213__ul1015253083419"><li id="EN-US_TOPIC_0000001233563213__li715213304341">If this parameter is set, NULL is returned if the divisor is 0 in a division or modulo operation.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen7364151121618">compatible_mysql_db=# SET behavior_compat_options = 'enable_division_by_zero_mysql';
SET
compatible_mysql_db=# SELECT 1/0 as test;
test
----------
(1 row)</pre>
</li><li id="EN-US_TOPIC_0000001233563213__li8515827112110">If this parameter is not set, an error is returned if the divisor is 0 in a division or modulo operation.<pre class="screen" id="EN-US_TOPIC_0000001233563213__screen1646973615211">compatible_mysql_db=# SELECT 1/0;
ERROR: division by zero</pre>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p210817225324">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row15416135716125"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p14417115771220">merge_into_with_trigger</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p1941785715124">Controls whether the MERGE INTO operation can be performed on tables with triggers. (This parameter is supported only in 8.1.3.200 and later cluster versions.)</p>
<ul id="EN-US_TOPIC_0000001233563213__ul1597123718133"><li id="EN-US_TOPIC_0000001233563213__li49711537111318">When this option is set, the MERGE INTO operation can be performed on tables with triggers. When the MERGE INTO operation is performed, the trigger on the table is not activated.</li><li id="EN-US_TOPIC_0000001233563213__li1563394712136">If this option is not set, an error is reported when the MERGE INTO operation is performed on a table with triggers.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p1028718514138">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p92878571311">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p102871651135">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row1252124510461"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p15227720123913">add_column_default_v_func</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p1227152011399">Controls whether <strong id="EN-US_TOPIC_0000001233563213__b10806332012">expression</strong> in <strong id="EN-US_TOPIC_0000001233563213__b351574710015">alter table add column default expression</strong> supports volatile functions. (This parameter is supported only in 8.1.3.200 and later cluster versions.)</p>
<ul id="EN-US_TOPIC_0000001233563213__ul6474184894016"><li id="EN-US_TOPIC_0000001233563213__li154749489408">If this option is selected, <strong id="EN-US_TOPIC_0000001233563213__b17551332185118">expression</strong> in <strong id="EN-US_TOPIC_0000001233563213__b1287873615117">alter table add column default expression</strong> supports volatile functions.</li><li id="EN-US_TOPIC_0000001233563213__li12115108174211">If this option is not selected, <strong id="EN-US_TOPIC_0000001233563213__b185511619105213">expression</strong> in <strong id="EN-US_TOPIC_0000001233563213__b10389102411529">alter table add column default expression</strong> does not support volatile functions. If <strong id="EN-US_TOPIC_0000001233563213__b02796471521">expression</strong> contains volatile functions, an error will be reported during statement execution.</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p98562024164014">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p285602417409">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p385612241407">MySQL</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233563213__row119961441195911"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.17.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001233563213__p7994125373618">disable_gc_fdw_filter_partial_pushdown</p>
</td>
<td class="cellrowborder" valign="top" width="65%" headers="mcps1.3.17.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001233563213__p12994165303611">Controls whether filter criteria are pushed down when filter criteria are used to query data in a collaborative analysis foreign table (type: gc_fdw). (This parameter is supported only in 8.1.3.310 and later cluster versions.)</p>
<ul id="EN-US_TOPIC_0000001233563213__ul09941453113612"><li id="EN-US_TOPIC_0000001233563213__li1399445343618">When this option is selected, if the filter criteria contain elements (such as non-immutable functions) that do not meet the pushdown conditions, all filter criteria are not pushed down to ensure the normal generation of the result set document. This behavior is compatible with the behavior in versions earlier than 8.1.3.310.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563213__screen1199435343615"><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>
<span class="normal">12</span>
<span class="normal">13</span>
<span class="normal">14</span>
<span class="normal">15</span>
<span class="normal">16</span>
<span class="normal">17</span>
<span class="normal">18</span></pre></div></td><td class="code"><div><pre><span></span><span class="c1">-- Create a table in the source cluster.</span>
<span class="k">CREATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">t1</span><span class="p">(</span><span class="n">c1</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span><span class="w"> </span><span class="nb">INT</span><span class="p">)</span><span class="w"> </span><span class="n">DISTRIBUTE</span><span class="w"> </span><span class="k">BY</span><span class="w"> </span><span class="n">HASH</span><span class="p">(</span><span class="n">c1</span><span class="p">);</span>
<span class="c1">-- Create a foreign table with the same structure in the local cluster.</span>
<span class="k">CREATE</span><span class="w"> </span><span class="n">SERVER</span><span class="w"> </span><span class="n">server_remote</span><span class="w"> </span><span class="k">FOREIGN</span><span class="w"> </span><span class="k">DATA</span><span class="w"> </span><span class="n">WRAPPER</span><span class="w"> </span><span class="n">gc_fdw</span><span class="w"> </span><span class="k">options</span><span class="p">(</span><span class="n">ADDRESS</span><span class="w"> </span><span class="s1">'address'</span><span class="p">,</span><span class="w"> </span><span class="n">DBNAME</span><span class="w"> </span><span class="s1">'dbname'</span><span class="p">,</span><span class="w"> </span><span class="n">USERNAME</span><span class="w"> </span><span class="s1">'username'</span><span class="p">,</span><span class="w"> </span><span class="n">PASSWORD</span><span class="w"> </span><span class="s1">'password'</span><span class="p">);</span>
<span class="k">CREATE</span><span class="w"> </span><span class="k">FOREIGN</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">t1</span><span class="p">(</span><span class="n">c1</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span><span class="w"> </span><span class="nb">INT</span><span class="p">)</span><span class="w"> </span><span class="n">SERVER</span><span class="w"> </span><span class="n">server_remote</span><span class="p">;</span>
<span class="c1">-- Enable the parameter and see the pushdown behavior.</span>
<span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">'disable_gc_fdw_filter_partial_pushdown'</span><span class="p">;</span>
<span class="k">EXPLAIN</span><span class="w"> </span><span class="p">(</span><span class="k">verbose</span><span class="w"> </span><span class="k">on</span><span class="p">,</span><span class="n">costs</span><span class="w"> </span><span class="k">off</span><span class="p">)</span><span class="w"> </span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">c1</span><span class="o">&gt;</span><span class="mi">3</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">c2</span><span class="w"> </span><span class="o">&lt;</span><span class="mi">100</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">now</span><span class="p">()</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="s1">'20230101'</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">c3</span><span class="p">;</span>
<span class="w"> </span><span class="n">QUERY</span><span class="w"> </span><span class="n">PLAN</span><span class="w"> </span>
<span class="c1">----------------------------------------------------------------------------------------------------------------------------------------------------------</span>
<span class="w"> </span><span class="n">Streaming</span><span class="w"> </span><span class="p">(</span><span class="k">type</span><span class="p">:</span><span class="w"> </span><span class="n">GATHER</span><span class="p">)</span>
<span class="w"> </span><span class="k">Output</span><span class="p">:</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span>
<span class="w"> </span><span class="n">Node</span><span class="o">/</span><span class="n">s</span><span class="p">:</span><span class="w"> </span><span class="k">All</span><span class="w"> </span><span class="n">datanodes</span>
<span class="w"> </span><span class="o">-&gt;</span><span class="w"> </span><span class="k">Foreign</span><span class="w"> </span><span class="n">Scan</span><span class="w"> </span><span class="k">on</span><span class="w"> </span><span class="n">ca_schema</span><span class="p">.</span><span class="n">t1</span>
<span class="w"> </span><span class="k">Output</span><span class="p">:</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span>
<span class="w"> </span><span class="n">Filter</span><span class="p">:</span><span class="w"> </span><span class="p">((</span><span class="n">t1</span><span class="p">.</span><span class="n">c1</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="p">(</span><span class="n">t1</span><span class="p">.</span><span class="n">c2</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">100</span><span class="p">)</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="p">((</span><span class="n">now</span><span class="p">()</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="s1">'2023-01-01 00:00:00-08'</span><span class="p">::</span><span class="k">timestamp</span><span class="w"> </span><span class="k">with</span><span class="w"> </span><span class="k">time</span><span class="w"> </span><span class="k">zone</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="p">(</span><span class="n">t1</span><span class="p">.</span><span class="n">c3</span><span class="p">)::</span><span class="nb">interval</span><span class="p">))</span>
<span class="w"> </span><span class="n">Remote</span><span class="w"> </span><span class="k">SQL</span><span class="p">:</span><span class="w"> </span><span class="k">SELECT</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">ca_schema</span><span class="p">.</span><span class="n">t1</span>
<span class="p">(</span><span class="mi">7</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li><li id="EN-US_TOPIC_0000001233563213__li129781531184115">If this parameter is not set, the filter criteria that can be pushed down are executed in the source cluster, and the filter criteria that cannot be pushed down are executed in the local cluster. This improves the query efficiency of foreign tables.<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233563213__screen199942535363"><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>
<span class="normal">12</span>
<span class="normal">13</span></pre></div></td><td class="code"><div><pre><span></span><span class="c1">-- Disable this parameter and see the pushdown behavior.</span>
<span class="k">SET</span><span class="w"> </span><span class="n">behavior_compat_options</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s1">''</span><span class="p">;</span>
<span class="k">EXPLAIN</span><span class="w"> </span><span class="p">(</span><span class="k">verbose</span><span class="w"> </span><span class="k">on</span><span class="p">,</span><span class="n">costs</span><span class="w"> </span><span class="k">off</span><span class="p">)</span><span class="w"> </span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">t1</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="n">c1</span><span class="o">&gt;</span><span class="mi">3</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">c2</span><span class="w"> </span><span class="o">&lt;</span><span class="mi">100</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="n">now</span><span class="p">()</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="s1">'20230101'</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="n">c3</span><span class="p">;</span>
<span class="w"> </span><span class="n">QUERY</span><span class="w"> </span><span class="n">PLAN</span><span class="w"> </span>
<span class="c1">----------------------------------------------------------------------------------------------------------</span>
<span class="w"> </span><span class="n">Streaming</span><span class="w"> </span><span class="p">(</span><span class="k">type</span><span class="p">:</span><span class="w"> </span><span class="n">GATHER</span><span class="p">)</span>
<span class="w"> </span><span class="k">Output</span><span class="p">:</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span>
<span class="w"> </span><span class="n">Node</span><span class="o">/</span><span class="n">s</span><span class="p">:</span><span class="w"> </span><span class="k">All</span><span class="w"> </span><span class="n">datanodes</span>
<span class="w"> </span><span class="o">-&gt;</span><span class="w"> </span><span class="k">Foreign</span><span class="w"> </span><span class="n">Scan</span><span class="w"> </span><span class="k">on</span><span class="w"> </span><span class="n">ca_schema</span><span class="p">.</span><span class="n">t1</span>
<span class="w"> </span><span class="k">Output</span><span class="p">:</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span>
<span class="w"> </span><span class="n">Filter</span><span class="p">:</span><span class="w"> </span><span class="p">((</span><span class="n">now</span><span class="p">()</span><span class="w"> </span><span class="o">-</span><span class="w"> </span><span class="s1">'2023-01-01 00:00:00-08'</span><span class="p">::</span><span class="k">timestamp</span><span class="w"> </span><span class="k">with</span><span class="w"> </span><span class="k">time</span><span class="w"> </span><span class="k">zone</span><span class="p">)</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="p">(</span><span class="n">t1</span><span class="p">.</span><span class="n">c3</span><span class="p">)::</span><span class="nb">interval</span><span class="p">)</span>
<span class="w"> </span><span class="n">Remote</span><span class="w"> </span><span class="k">SQL</span><span class="p">:</span><span class="w"> </span><span class="k">SELECT</span><span class="w"> </span><span class="n">c1</span><span class="p">,</span><span class="w"> </span><span class="n">c2</span><span class="p">,</span><span class="w"> </span><span class="n">c3</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="n">ca_schema</span><span class="p">.</span><span class="n">t1</span><span class="w"> </span><span class="k">WHERE</span><span class="w"> </span><span class="p">((</span><span class="n">c1</span><span class="w"> </span><span class="o">&gt;</span><span class="w"> </span><span class="mi">3</span><span class="p">))</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="p">((</span><span class="n">c2</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mi">100</span><span class="p">))</span>
<span class="p">(</span><span class="mi">7</span><span class="w"> </span><span class="k">rows</span><span class="p">)</span>
</pre></div></td></tr></table></div>
</div>
</li></ul>
</td>
<td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.17.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001233563213__p1999595313368">ORA</p>
<p id="EN-US_TOPIC_0000001233563213__p59951653133610">TD</p>
<p id="EN-US_TOPIC_0000001233563213__p5995253103613">MySQL</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section6927111511525"><h4 class="sectiontitle">redact_compat_options</h4><p id="EN-US_TOPIC_0000001233563213__p656010248522"><strong id="EN-US_TOPIC_0000001233563213__b14560182485212">Parameter description</strong>: Specifies the compatibility option for calculation using masked data. This parameter is supported by version 8.1.3 or later clusters.</p>
<p id="EN-US_TOPIC_0000001233563213__p656072485210"><strong id="EN-US_TOPIC_0000001233563213__b2027207136">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__p125609241526"><strong id="EN-US_TOPIC_0000001233563213__b1296988367">Value range</strong>: a string</p>
<ul id="EN-US_TOPIC_0000001233563213__ul171105217102"><li id="EN-US_TOPIC_0000001233563213__li1611552181014"><strong id="EN-US_TOPIC_0000001233563213__b112195745284024">none</strong> indicates that compatibility options are specified.</li><li id="EN-US_TOPIC_0000001233563213__li37529255117"><strong id="EN-US_TOPIC_0000001233563213__b144289188084024">disable_comparison_operator_mask</strong> indicates that comparison operators that do not expose raw data can bypass the data masking check and generate the actual calculation result.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__p8832531111018"><strong id="EN-US_TOPIC_0000001233563213__b177434998484024">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b15096743584024">none</strong></p>
<p id="EN-US_TOPIC_0000001233563213__p1956092420527"></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section174079331456"><h4 class="sectiontitle">table_skewness_warning_threshold</h4><p id="EN-US_TOPIC_0000001233563213__p1595016610473"><strong id="EN-US_TOPIC_0000001233563213__b5711028161119">Parameter description</strong>: Specifies the threshold for triggering a table skew alarm.</p>
<p id="EN-US_TOPIC_0000001233563213__p1215324024119"><strong id="EN-US_TOPIC_0000001233563213__b112871636501">Type</strong>: SUSET</p>
<p id="EN-US_TOPIC_0000001233563213__p940773318456"><strong id="EN-US_TOPIC_0000001233563213__b41277322111">Value range</strong>: a floating point number ranging from 0 to 1</p>
<p id="EN-US_TOPIC_0000001233563213__p9407173318455"><strong id="EN-US_TOPIC_0000001233563213__b1567223313119">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b1167318334115">1</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section816564619464"><h4 class="sectiontitle">table_skewness_warning_rows</h4><p id="EN-US_TOPIC_0000001233563213__p487310812471"><strong id="EN-US_TOPIC_0000001233563213__b4882101416128">Parameter description</strong>: Specifies the minimum number of rows for triggering a table skew alarm.</p>
<p id="EN-US_TOPIC_0000001233563213__p713494214147"><strong id="EN-US_TOPIC_0000001233563213__b12493113195010">Type</strong>: SUSET</p>
<p id="EN-US_TOPIC_0000001233563213__p81651946184613"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0059778564_en-us_topic_0058967768_b54205967">Value range</strong>: an integer ranging from <strong id="EN-US_TOPIC_0000001233563213__b099810385338">0</strong> to <strong id="EN-US_TOPIC_0000001233563213__b91101842193319">INT_MAX</strong></p>
<p id="EN-US_TOPIC_0000001233563213__p1716524624611"><strong id="EN-US_TOPIC_0000001233563213__b1730873019">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b46501319151218">100000</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section340716426103"><h4 class="sectiontitle">auto_process_residualfile</h4><p id="EN-US_TOPIC_0000001233563213__p147295514107"><strong id="EN-US_TOPIC_0000001233563213__b18278173913518">Parameter description</strong>: Specifies whether to enable the residual file recording function.</p>
<p id="EN-US_TOPIC_0000001233563213__p167325516103"><strong id="EN-US_TOPIC_0000001233563213__b431095523513">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001233563213__p2073195516100"><strong id="EN-US_TOPIC_0000001233563213__b74963564356">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__ul573135541016"><li id="EN-US_TOPIC_0000001233563213__li2074125511102"><strong id="EN-US_TOPIC_0000001233563213__b1031144123613">on</strong> indicates that the residual file recording function is enabled.</li><li id="EN-US_TOPIC_0000001233563213__li13744551101"><strong id="EN-US_TOPIC_0000001233563213__b1471291053611">off</strong> indicates that the residual file recording function is disabled.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__p674155520101"><strong id="EN-US_TOPIC_0000001233563213__b10963823143610">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b29681123103618">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section595114015017"><h4 class="sectiontitle">enable_view_update</h4><p id="EN-US_TOPIC_0000001233563213__p1096134015012"><strong id="EN-US_TOPIC_0000001233563213__b188201841105110">Parameter description</strong>: Enables the view update function or not.</p>
<p id="EN-US_TOPIC_0000001233563213__p6961140125018"><strong id="EN-US_TOPIC_0000001233563213__b6153754135116">Type</strong>: POSTMASTER</p>
<p id="EN-US_TOPIC_0000001233563213__p129614403502"><strong id="EN-US_TOPIC_0000001233563213__b1152256205116">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__ul5961540105011"><li id="EN-US_TOPIC_0000001233563213__li1496840145010"><strong id="EN-US_TOPIC_0000001233563213__b2484175916511">on</strong> indicates that the view update function is enabled.</li><li id="EN-US_TOPIC_0000001233563213__li6961940195011"><strong id="EN-US_TOPIC_0000001233563213__b1333214115213">off</strong> indicates that the view update function is disabled.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__p11962040125013"><strong id="EN-US_TOPIC_0000001233563213__b1032111615214">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b33267615522">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section8167104693414"><h4 class="sectiontitle">view_independent</h4><p id="EN-US_TOPIC_0000001233563213__p13167546103414"><strong id="EN-US_TOPIC_0000001233563213__b1991181685217">Parameter description</strong>: Decouples views from tables, functions, and synonyms or not. After the base table is restored, automatic association and re-creation are supported.</p>
<p id="EN-US_TOPIC_0000001233563213__p916754614346"><strong id="EN-US_TOPIC_0000001233563213__b1415213323525">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001233563213__p18167194619343"><strong id="EN-US_TOPIC_0000001233563213__b8336153311528">Value range</strong>: Boolean</p>
<ul id="EN-US_TOPIC_0000001233563213__ul161671446163410"><li id="EN-US_TOPIC_0000001233563213__li20167946173411"><strong id="EN-US_TOPIC_0000001233563213__b5389637155219">on</strong> indicates that the view decoupling function is enabled. Tables, functions, synonyms, and other views on which views depend can be deleted separately (except temporary tables and temporary views). Associated views are reserved but unavailable.</li><li id="EN-US_TOPIC_0000001233563213__li616764619344"><strong id="EN-US_TOPIC_0000001233563213__b52255412527">off</strong> indicates that the view decoupling function is disabled. Tables, functions, synonyms, and other views on which views depend cannot be deleted separately. You can only delete them in the cascade mode.</li></ul>
<p id="EN-US_TOPIC_0000001233563213__p816774616341"><strong id="EN-US_TOPIC_0000001233563213__b76943155315">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b157043116535">off</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section15575141514296"><h4 class="sectiontitle">bulkload_report_threshold</h4><p id="EN-US_TOPIC_0000001233563213__p257918489298"><strong id="EN-US_TOPIC_0000001233563213__b14584124124814">Parameter description</strong>: Sets the threshold for reporting import and export statistics.</p>
<p id="EN-US_TOPIC_0000001233563213__p1255515211301"><strong id="EN-US_TOPIC_0000001233563213__b16427113194816">Type</strong>: SIGHUP</p>
<p id="EN-US_TOPIC_0000001233563213__p589147183010"><strong id="EN-US_TOPIC_0000001233563213__b13181804813">Value range</strong>: an integer ranging from <strong id="EN-US_TOPIC_0000001233563213__b282405320336">0</strong> to <strong id="EN-US_TOPIC_0000001233563213__b152011156103315">INT_MAX</strong></p>
<p id="EN-US_TOPIC_0000001233563213__p137783259506"><strong id="EN-US_TOPIC_0000001233563213__en-us_topic_0058967612_b1551330">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b84235270616249">50</strong></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section7911451155615"><h4 class="sectiontitle">assign_abort_xid</h4><p id="EN-US_TOPIC_0000001233563213__p18424204185714"><strong id="EN-US_TOPIC_0000001233563213__b11465101904310">Parameter description</strong>: Determines the transaction to be aborted based on the specified XID in a query.</p>
<p id="EN-US_TOPIC_0000001233563213__p17424646573"><strong id="EN-US_TOPIC_0000001233563213__b1862173464319">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563213__p1742414413577"><strong id="EN-US_TOPIC_0000001233563213__b102026494473">Value range</strong>: a character string with the specified XID</p>
<div class="caution" id="EN-US_TOPIC_0000001233563213__note85011588571"><span class="cautiontitle"><img src="public_sys-resources/caution_3.0-en-us.png"> </span><div class="cautionbody"><p id="EN-US_TOPIC_0000001233563213__p1650258205716">This parameter is used only for quick restoration if a user deletes data by mistake (DELETE operation). Do not use this parameter in other scenarios. Otherwise, visible transaction errors may occur.</p>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563213__section196600274573"><h4 class="sectiontitle">default_distribution_mode</h4><p id="EN-US_TOPIC_0000001233563213__p323264318579"><strong id="EN-US_TOPIC_0000001233563213__b8391327103813">Parameter description</strong>: Specifies the default distribution mode of a table. This feature is supported only in 8.1.2 or later.</p>
<p id="EN-US_TOPIC_0000001233563213__p16552323135815"><strong id="EN-US_TOPIC_0000001233563213__b17194144317389">Type</strong>: USERSET</p>
<div class="p" id="EN-US_TOPIC_0000001233563213__p11138202811583"><strong id="EN-US_TOPIC_0000001233563213__b1572684923810">Value range</strong>: enumerated values<ul id="EN-US_TOPIC_0000001233563213__ul5611281415"><li id="EN-US_TOPIC_0000001233563213__li4621128714"><strong id="EN-US_TOPIC_0000001233563213__b1167273915438">roundrobin</strong>: If the distribution mode is not specified during table creation, the default distribution mode is selected according to the following rules:<ol id="EN-US_TOPIC_0000001233563213__ol137381934837"><li id="EN-US_TOPIC_0000001233563213__li87381341531">If the primary key or unique constraint is included during table creation, hash distribution is selected. The distribution column is the column corresponding to the primary key or unique constraint.</li><li id="EN-US_TOPIC_0000001233563213__li0741558414">If the primary key or unique constraint is not included during table creation, round-robin distribution is selected.</li></ol>
</li><li id="EN-US_TOPIC_0000001233563213__li1130420261250"><strong id="EN-US_TOPIC_0000001233563213__b1717173534217">hash</strong>: If the distribution mode is not specified during table creation, the default distribution mode is selected according to the following rules:<ol id="EN-US_TOPIC_0000001233563213__ol4873444050"><li id="EN-US_TOPIC_0000001233563213__li38741447517">If the primary key or unique constraint is included during table creation, hash distribution is selected. The distribution column is the column corresponding to the primary key or unique constraint.</li><li id="EN-US_TOPIC_0000001233563213__li990712591559">If the primary key or unique constraint is not included during table creation but there are columns whose data types can be used as distribution columns, hash distribution is selected. The distribution column is the first column whose data type can be used as a distribution column.</li><li id="EN-US_TOPIC_0000001233563213__li462574677">If the primary key or unique constraint is not included during table creation and no column whose data type can be used as a distribution column exists, round-robin distribution is selected.</li></ol>
</li></ul>
</div>
<p id="EN-US_TOPIC_0000001233563213__p182017910593"><strong id="EN-US_TOPIC_0000001233563213__b13341161013393">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563213__b134814108399">roundrobin</strong></p>
<div class="note" id="EN-US_TOPIC_0000001233563213__note4275125192119"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233563213__p1627513510219">The default value of this parameter is <strong id="EN-US_TOPIC_0000001233563213__b224073692">roundrobin</strong> for a new GaussDB(DWS) 8.1.2 cluster and is <strong id="EN-US_TOPIC_0000001233563213__b2816122717106">hash</strong> for an upgrade to GaussDB(DWS) 8.1.2.</p>
</div></div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0883.html">GUC Parameters</a></div>
</div>
</div>