环境

系统平台:全平台

版本:V 9.0.5

文档用途

oracle模式 sys_guid() 函数显示带 \x 问题

详细信息

1.查询

highgo=# select sys_guid() as uuid;
uuid
------------------------------------
\xc666e486d42fff4c86ce430ecbaf1f64
(1 行记录)

2.临时修改参数测试

highgo=# set ivorysql.hex_bytea to on;
SET
highgo=# select sys_guid() as uuid;
uuid
----------------------------------
A556B6DB5F671E44BAFF138348300C7A
(1 行记录)

3.修改系统GUC参数永久生效

highgo=# alter system set ivorysql.hex_bytea to on;
ALTER SYSTEM
highgo=# select pg_reload_conf();
pg_reload_conf
----------------
t
(1 行记录)

4.新建连接查看参数是否生效

highgo=# show ivorysql.hex_bytea;
ivorysql.hex_bytea
--------------------
on
(1 行记录)