forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
97 lines
24 KiB
HTML
97 lines
24 KiB
HTML
<a name="EN-US_TOPIC_0000001188323688"></a><a name="EN-US_TOPIC_0000001188323688"></a>
|
||
|
||
<h1 class="topictitle1">Zone and Formatting</h1>
|
||
<div id="body8662426"><p id="EN-US_TOPIC_0000001188323688__afd04fdcb832640fdb0554d3afd624fce">This section describes parameters related to the time format setting.</p>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__se661e54f98d0474a9cc9c79c8f2294c5"><a name="EN-US_TOPIC_0000001188323688__se661e54f98d0474a9cc9c79c8f2294c5"></a><a name="se661e54f98d0474a9cc9c79c8f2294c5"></a><h4 class="sectiontitle">DateStyle</h4><p id="EN-US_TOPIC_0000001188323688__ab065dc4009b14b4db70ae2d8702eadd0"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b3209503">Parameter description</strong>: Specifies the display format for date and time values, as well as the rules for interpreting ambiguous date input values.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a012387fe0fab4166a1c4429437ddb932">This variable contains two independent components: the output format specifications (ISO, Postgres, SQL, or German) and the input/output order of year/month/day (DMY, MDY, or YMD). The two components can be set separately or together. The keywords Euro and European are synonyms for DMY; the keywords US, NonEuro, and NonEuropean are synonyms for MDY.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a4c103e8ba1c24e5b86446b889a7916c9"><strong id="EN-US_TOPIC_0000001188323688__b18564951131415">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__abb069351700d490e843466fa442177dc"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b58140079">Value range</strong>: a string</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a4d75e0b65b9f4c83a80be16102097758"><strong id="EN-US_TOPIC_0000001188323688__b17320137113915">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b6330171219394">ISO, MDY</strong></p>
|
||
<div class="note" id="EN-US_TOPIC_0000001188323688__note10582823172111"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188323688__p15582223102115"><strong id="EN-US_TOPIC_0000001188323688__b842352706144628">gs_initdb</strong> will initialize this parameter so that its value is the same as that of <a href="#EN-US_TOPIC_0000001188323688__s753451ed7f6048c3853c7328cc321818">lc_time</a>.</p>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001188323688__p10782334407"><strong id="EN-US_TOPIC_0000001188323688__b661264711379">Suggestion</strong>: The ISO format is recommended. Postgres, SQL, and German use abbreviations for time zones, such as <strong id="EN-US_TOPIC_0000001188323688__b14328181671116">EST</strong>, <strong id="EN-US_TOPIC_0000001188323688__b432941661115">WST</strong>, and <strong id="EN-US_TOPIC_0000001188323688__b732961618119">CST</strong>. </p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__sb60359b59155461bb4aac2e2de437e8a"><h4 class="sectiontitle">IntervalStyle</h4><p id="EN-US_TOPIC_0000001188323688__a72ff434c19d1449593091f80af15bb7b"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b19990463">Parameter description</strong>: Specifies the display format for interval values.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__aa8cf4ebb83ec4833b902477123e1a4de"><strong id="EN-US_TOPIC_0000001188323688__b15548145221416">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__abda8f062ef8d42b0bc6dcd3613a8dd25"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b53301156">Value range</strong>: enumerated values</p>
|
||
<ul id="EN-US_TOPIC_0000001188323688__u71bab82895a5463a8c44c60054447f2c"><li id="EN-US_TOPIC_0000001188323688__l280d14a9d9274b5e81ecee622c6e8fca"><strong id="EN-US_TOPIC_0000001188323688__b1326717266469">sql_standard</strong> indicates that output matching SQL standards will be generated.</li><li id="EN-US_TOPIC_0000001188323688__lcc2eae7e281b4526a7641e7aaa337822"><strong id="EN-US_TOPIC_0000001188323688__b515632864611">postgres</strong> indicates that output matching PostgreSQL 8.4 will be generated when the <a href="#EN-US_TOPIC_0000001188323688__se661e54f98d0474a9cc9c79c8f2294c5">DateStyle</a> parameter is set to <strong id="EN-US_TOPIC_0000001188323688__b5157828144613">ISO</strong>.</li><li id="EN-US_TOPIC_0000001188323688__l0354a3c9756b4e2bb5e1fbec3e5e4f6c"><strong id="EN-US_TOPIC_0000001188323688__b147718379461">postgres_verbose</strong> indicates that output matching PostgreSQL 8.4 will be generated when the <a href="#EN-US_TOPIC_0000001188323688__se661e54f98d0474a9cc9c79c8f2294c5">DateStyle</a> parameter is set to <strong id="EN-US_TOPIC_0000001188323688__b1347863714468">non_ISO</strong>.</li><li id="EN-US_TOPIC_0000001188323688__lbab84f6bab3440fa8a4f6bdcce1629e8"><strong id="EN-US_TOPIC_0000001188323688__b389774418462">iso_8601</strong> indicates that output matching the time interval "format with designators" defined in ISO 8601 will be generated.</li><li id="EN-US_TOPIC_0000001188323688__li94841461207"><strong id="EN-US_TOPIC_0000001188323688__b14150173116113">oracle</strong> indicates the output result that matches the numtodsinterval function in the Oracle database. For details, see numtodsinterval.</li></ul>
|
||
<div class="notice" id="EN-US_TOPIC_0000001188323688__n788f6c515284487588830dc3a4360113"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="EN-US_TOPIC_0000001188323688__ae2640fb618254f8a93742f99c637456c">The <strong id="EN-US_TOPIC_0000001188323688__b842352706102523">IntervalStyle</strong> parameter also affects the interpretation of ambiguous interval input.</p>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001188323688__a3277b7470eed4e3194c284285eeeed27"><strong id="EN-US_TOPIC_0000001188323688__b38308765">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b842352706171938">postgres</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__seb4ea8b8bc704f4eb9f7e7661c826fa9"><h4 class="sectiontitle">TimeZone</h4><p id="EN-US_TOPIC_0000001188323688__ac0cb67ea71f04c74b4c5e86d1f7f9602"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b2202654">Parameter description</strong>: Specifies the time zone for displaying and interpreting time stamps.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a210b70a885bd46af91f85766c9991675"><strong id="EN-US_TOPIC_0000001188323688__b13521928152816">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a0caeb77f361d4984b8259cdd811c2b91"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b48365907">Value range</strong>: a string. You can obtain it by querying the <a href="dws_04_0787.html">pg_timezone_names</a> view.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a9b47c537f18e4eb5942aa475028c474f"><strong id="EN-US_TOPIC_0000001188323688__b1156951614404">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b10967192118531">UTC</strong></p>
|
||
<div class="note" id="EN-US_TOPIC_0000001188323688__note15832363337"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188323688__p18583236123314"><strong id="EN-US_TOPIC_0000001188323688__b107812426415">gs_initdb</strong> will set a time zone value that is consistent with the system environment.</p>
|
||
</div></div>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__sdf1637583c4040bea6928af17687bc72"><h4 class="sectiontitle">timezone_abbreviations</h4><p id="EN-US_TOPIC_0000001188323688__a9dbf19e865904059a8b3d984af557885"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b62904355">Parameter description</strong>: Specifies the time zone abbreviations that will be accepted by the server.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a13b3dbeb96d04a509e89fd3facd73aa1"><strong id="EN-US_TOPIC_0000001188323688__b149962542145">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a8850771eacf447909a295ddff79b3803"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b24818728">Value range</strong>: a string. You can obtain it by querying the pg_timezone_names view.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__aa1c94f81f4e64de292ea10f9962e29e4"><strong id="EN-US_TOPIC_0000001188323688__b8129175854114">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b1297112034219">Default</strong></p>
|
||
<div class="note" id="EN-US_TOPIC_0000001188323688__note9279722193112"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188323688__p12644152723119"><strong id="EN-US_TOPIC_0000001188323688__b842352706162840">Default</strong> indicates an abbreviation that works in most of the world. There are also other abbreviations, such as <strong id="EN-US_TOPIC_0000001188323688__b1251171717448">Australia</strong> and <strong id="EN-US_TOPIC_0000001188323688__b15748122010443">India</strong> that can be defined for a particular installation.</p>
|
||
</div></div>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__s84c6f184562f47869d2342af74a01feb"><h4 class="sectiontitle">extra_float_digits</h4><p id="EN-US_TOPIC_0000001188323688__a134fb96e9dbe4d9f88de0dcf7ad52f70"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b62865382">Parameter description</strong>: Specifies the number of digits displayed for floating-point values, including float4, float8, and geometric data types. The parameter value is added to the standard number of digits (FLT_DIG or DBL_DIG as appropriate).</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a4335ba3b5be342c08e167f40775e180e"><strong id="EN-US_TOPIC_0000001188323688__b17539955181417">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a7b9a4fdf1a524e348cb8a53d0e62987f"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b31237048">Value range</strong>: an integer ranging from –15 to 3</p>
|
||
<div class="note" id="EN-US_TOPIC_0000001188323688__na6a6eaebbbec4c97991560b1ff12cc9e"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188323688__u85caa0384f774d58a0eb18f773d66a47"><li id="EN-US_TOPIC_0000001188323688__l2433b8c1bc7c4d0cad9435cc04f9e2ca">This parameter can be set to <strong id="EN-US_TOPIC_0000001188323688__b20321249122818">3</strong> to include partially-significant digits. It is especially useful for dumping float data that needs to be restored exactly.</li><li id="EN-US_TOPIC_0000001188323688__l4cd437160e734b398eac218b8c80be73">This parameter can also be set to a negative value to suppress unwanted digits.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001188323688__ac37bba8e1eba4086b4a1b6d9bd93e000"><strong id="EN-US_TOPIC_0000001188323688__b842352706103018">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b842352706103011">0</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__sa9fd1b3336c942fea8720f253dc048ac"><h4 class="sectiontitle">client_encoding</h4><p id="EN-US_TOPIC_0000001188323688__af4c9198de1d442499c7600c48bbaf519"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b20352294">Parameter description</strong>: Specifies the client-side encoding type (character set).</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__p839025791115">Set this parameter as needed. Try to keep the client code and server code consistent to improve efficiency.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__p18654331144016"><strong id="EN-US_TOPIC_0000001188323688__b187381555191416">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__acba2c5660ef5455ca1c39b67d2e9ff13"><strong id="EN-US_TOPIC_0000001188323688__b10987104331213">Value range</strong>: encoding compatible with PostgreSQL. <strong id="EN-US_TOPIC_0000001188323688__b842352706162937">UTF8</strong> indicates that the database encoding is used.</p>
|
||
<div class="note" id="EN-US_TOPIC_0000001188323688__note919534219126"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188323688__u14e569ea579545cfae2d3ce6b2aaf2d2"><li id="EN-US_TOPIC_0000001188323688__ledbe55ff9474496b93ea2b6b390501b4">You can run the <strong id="EN-US_TOPIC_0000001188323688__b5645750121613">locale -a</strong> command to check and set the system-supported zone and the corresponding encoding format.</li><li id="EN-US_TOPIC_0000001188323688__l46daab2151dd40f88007f2d4992705f5">By default, <strong id="EN-US_TOPIC_0000001188323688__b842352706144933">gs_initdb</strong> will initialize the setting of this parameter based on the current system environment. You can also run the <strong id="EN-US_TOPIC_0000001188323688__b39845083534547">locale</strong> command to check the current configuration environment.</li><li id="EN-US_TOPIC_0000001188323688__li1251537161114">To use consistent encoding for communication within a cluster, you are advised to retain the default value of <strong id="EN-US_TOPIC_0000001188323688__b194401125163212">client_encoding</strong>. Modification to this parameter in the <strong id="EN-US_TOPIC_0000001188323688__b134401025183213">postgresql.conf</strong> file (by using the <strong id="EN-US_TOPIC_0000001188323688__b164406256321">gs_guc</strong> tool, for example) does not take effect.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001188323688__p1918310581195"><strong id="EN-US_TOPIC_0000001188323688__b184781134184818">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b13276429134820">UTF8</strong></p>
|
||
<p id="EN-US_TOPIC_0000001188323688__abe5a1dea1aaf4404a532eb550310fb80"><strong id="EN-US_TOPIC_0000001188323688__b84235270692256">Recommended value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b842352706162944">SQL_ASCII</strong> or <strong id="EN-US_TOPIC_0000001188323688__b84235270616305">UTF8</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__sa0d72f05c5fa4ccc8f7232f9f3502172"><h4 class="sectiontitle">lc_messages</h4><p id="EN-US_TOPIC_0000001188323688__adcf4bfb4d5f942448e362857e581649f"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b58094191">Parameter description</strong>: Specifies the language in which messages are displayed.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__p957812205020">Valid values depend on the current system. On some systems, this zone category does not exist. Setting this variable will still work, but there will be no effect. In addition, translated messages for the desired language may not exist. In this case, you can still see the English messages.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__p2805195711452"><strong id="EN-US_TOPIC_0000001188323688__b1982635263015">Type</strong>: SUSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a297909ca9d6f4ffc9a686e4752a4825a"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b4250009">Value range</strong>: a string</p>
|
||
<div class="note" id="EN-US_TOPIC_0000001188323688__na3b66fe48af94e238343892382031f94"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188323688__u0b867472b6ed4411b9f1407670d6813f"><li id="EN-US_TOPIC_0000001188323688__l29d9b8c883a943b6b424da41f70c3100">You can run the <strong id="EN-US_TOPIC_0000001188323688__b197646735234547">locale -a</strong> command to check and set the system-supported zone and the corresponding encoding format.</li><li id="EN-US_TOPIC_0000001188323688__l2fab1e37cf5248908e68c990fc4f3f8c">By default, <strong id="EN-US_TOPIC_0000001188323688__b842352706145127">gs_initdb</strong> will initialize the setting of this parameter based on the current system environment. You can also run the <strong id="EN-US_TOPIC_0000001188323688__b86629442234547">locale</strong> command to check the current configuration environment.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001188323688__a53277c1904cc4127a2f16ebacb140628"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0058967590_b37906858_7">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b84235270616320">C</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__see5ab53938a244648cede47b83996d32"><h4 class="sectiontitle">lc_monetary</h4><p id="EN-US_TOPIC_0000001188323688__a59ab6cf604084b7eaf8d89c3be113157"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b36454430">Parameter description</strong>: Specifies the display format of monetary values. It affects the output of functions such as to_char. Valid values depend on the current system.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a5430b2df13fe42bd92375d33ac472d02"><strong id="EN-US_TOPIC_0000001188323688__b67620561149">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__aab79911a89344b379469cd0228a974fc"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b65004244">Value range</strong>: a string</p>
|
||
<div class="note" id="EN-US_TOPIC_0000001188323688__n92f2144c1e974d5f9636cc943942d4f0"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188323688__ued676c70f8d54101b8d894c8c0d5e1cb"><li id="EN-US_TOPIC_0000001188323688__l4df93eb956874dcdbf847c299145282a">You can run the <strong id="EN-US_TOPIC_0000001188323688__b83868029134547">locale -a</strong> command to check and set the system-supported zone and the corresponding encoding format.</li><li id="EN-US_TOPIC_0000001188323688__lf32e595a4fc14beb9fd79a17f410cba5">By default, <strong id="EN-US_TOPIC_0000001188323688__b1355777983">gs_initdb</strong> will initialize the setting of this parameter based on the current system environment. You can also run the <strong id="EN-US_TOPIC_0000001188323688__b1610525134547">locale</strong> command to check the current configuration environment.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001188323688__a9d481c95c5374b04842c9ad47d3930b1"><strong id="EN-US_TOPIC_0000001188323688__b1292889176">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b149776828">C</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__s5f284ec8736c42a99c9bbf8a6b8d9ece"><h4 class="sectiontitle">lc_numeric</h4><p id="EN-US_TOPIC_0000001188323688__a1e1808967d95439586fb1178c313fbca"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b52191008">Parameter description</strong>: Specifies the display format of numbers. It affects the output of functions such as to_char. Valid values depend on the current system.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__ad95e062a6dab4f15a7b171c738d712fe"><strong id="EN-US_TOPIC_0000001188323688__b1790977250">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a1077d33f40ba4c24885a2bf91d059458"><strong id="EN-US_TOPIC_0000001188323688__b62842899">Value range</strong>: a string</p>
|
||
<div class="note" id="EN-US_TOPIC_0000001188323688__n5cac41a8fc624cddaffbb233393738dd"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188323688__u99df1fa10a0c42828cb33d6abc7426fb"><li id="EN-US_TOPIC_0000001188323688__l0877782e6479448fae26ba06151b2698">You can run the <strong id="EN-US_TOPIC_0000001188323688__b133334500734547">locale -a</strong> command to check and set the system-supported zone and the corresponding encoding format.</li><li id="EN-US_TOPIC_0000001188323688__ldf4fd60e2cf54293944314c57d35b758">By default, <strong id="EN-US_TOPIC_0000001188323688__b2008132956">gs_initdb</strong> will initialize the setting of this parameter based on the current system environment. You can also run the <strong id="EN-US_TOPIC_0000001188323688__b162056741634547">locale</strong> command to check the current configuration environment.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001188323688__a6ef60f273ae04da5b7e03335d76ec6c8"><strong id="EN-US_TOPIC_0000001188323688__b640543509">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b1277907537">C</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__s753451ed7f6048c3853c7328cc321818"><a name="EN-US_TOPIC_0000001188323688__s753451ed7f6048c3853c7328cc321818"></a><a name="s753451ed7f6048c3853c7328cc321818"></a><h4 class="sectiontitle">lc_time</h4><p id="EN-US_TOPIC_0000001188323688__ae294df33f0bb4546942c0c65c6da350e"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b37562372">Parameter description</strong>: Specifies the display format of time and zones. It affects the output of functions such as to_char. Valid values depend on the current system.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a4ab56c1177c040ef95ccd046135c09fe"><strong id="EN-US_TOPIC_0000001188323688__b1186093844">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__a5b9d4b6d23bd45078d82d1887bd9e696"><strong id="EN-US_TOPIC_0000001188323688__b4657246">Value range</strong>: a string</p>
|
||
<div class="note" id="EN-US_TOPIC_0000001188323688__nd5c515dc9fb54c25a3c6572f29cdaf38"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188323688__ua73cb8b95e8e4040a98dad2cd04c279d"><li id="EN-US_TOPIC_0000001188323688__l0b55b452d6fd4e20baf2cb561e3ecc00">You can run the <strong id="EN-US_TOPIC_0000001188323688__b5580584434547">locale -a</strong> command to check and set the system-supported zone and the corresponding encoding format.</li><li id="EN-US_TOPIC_0000001188323688__l458ed27c48034aeab1a044c306f9cb92">By default, <strong id="EN-US_TOPIC_0000001188323688__b1127689252">gs_initdb</strong> will initialize the setting of this parameter based on the current system environment. You can also run the <strong id="EN-US_TOPIC_0000001188323688__b170987362334547">locale</strong> command to check the current configuration environment.</li></ul>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001188323688__a654a039409dc4344942b465675229d5d"><strong id="EN-US_TOPIC_0000001188323688__b1544080722">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b455970622">C</strong></p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000001188323688__s561a6df01d0b41e186fef77a6d4fab0d"><h4 class="sectiontitle">default_text_search_config</h4><p id="EN-US_TOPIC_0000001188323688__a1099a3c3c9944bfba6e20c8325e8f46c"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0059778109_en-us_topic_0058967590_b41564428">Parameter description</strong>: Specifies the text search configuration.</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__p1468951125816">If the specified text search configuration does not exist, an error will be reported. If the specified text search configuration is deleted, set <strong id="EN-US_TOPIC_0000001188323688__b3947100112320">default_text_search_config</strong> again. Otherwise, an error will be reported, indicating incorrect configuration.</p>
|
||
<ul id="EN-US_TOPIC_0000001188323688__u7de438dc2afe4bf0b865debce39bab65"><li id="EN-US_TOPIC_0000001188323688__l70c8712d33bc48a1bcaa5fc2e5eff5c2">The text search configuration is used by text search functions that do not have an explicit argument specifying the configuration.</li><li id="EN-US_TOPIC_0000001188323688__lcfca672875ac40bf818a72b8e07a59d8">When a configuration file matching the environment is determined, gs_initdb will initialize the configuration file with a setting that corresponds to the environment.</li></ul>
|
||
<p id="EN-US_TOPIC_0000001188323688__p1687172617461"><strong id="EN-US_TOPIC_0000001188323688__b210915771412">Type</strong>: USERSET</p>
|
||
<p id="EN-US_TOPIC_0000001188323688__ad45c3fcfc04e49ceac77f6ab89174212"><strong id="EN-US_TOPIC_0000001188323688__b622911463462">Value range</strong>: a string</p>
|
||
<div class="note" id="EN-US_TOPIC_0000001188323688__n88c333cfadcf49bb970886796c6c50e0"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188323688__aef698a2afaeb43e4b8e244c15914c5d9"><span id="EN-US_TOPIC_0000001188323688__text366881962">GaussDB(DWS)</span> supports the following two configurations: pg_catalog.english and pg_catalog.simple.</p>
|
||
</div></div>
|
||
<p id="EN-US_TOPIC_0000001188323688__a7f0785dc702e4a0a8006742e44fb69ef"><strong id="EN-US_TOPIC_0000001188323688__en-us_topic_0058967590_b13932165155840">Default value</strong>: <strong id="EN-US_TOPIC_0000001188323688__b842352706163212">pg_catalog.english</strong></p>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<div class="familylinks">
|
||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0924.html">Default Settings of Client Connection</a></div>
|
||
</div>
|
||
</div>
|
||
|