extra_float_digits - Amazon Redshift
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

extra_float_digits

值(默认为粗体)

0、-15到 2

描述

设置所显示的浮点值位数(包括 float4 和 float8)。该值将添加到标准位数(FLT_DIG 或 DBL_DIG,根据需要)。该值最高可设置为 2 以包括部分有效数字。这对于需要准确还原的输出浮点数据特别有用。也可以将它设置为负以隐藏不需要的位数。

示例

以下示例将 extra_float_digits 设置为 -2。首先,显示当前的参数设置。

show all; name | setting --------------------------+---------------- analyze_threshold_percent | 10 datestyle | ISO, MDY extra_float_digits | 2 query_group | default search_path | $user, public statement_timeout | 0 timezone | UTC wlm_query_slot_count | 1

然后,将新值设置为 -2

set extra_float_digits to -2;

最后显示更新的参数设置。

show all; name | setting --------------------------+---------------- analyze_threshold_percent | 10 datestyle | ISO, MDY extra_float_digits | -2 query_group | default search_path | $user, public statement_timeout | 0 timezone | UTC wlm_query_slot_count | 1