华为openGauss数据库内核基于postgresql演进而来,对pg做了非常大的改造和增强。
客户端密码认证增强
postgresql 默认密码加密方式是 md5。
openGauss 默认密码加密方式是 sha256。
字符串存储
在 postgresql 里,char(n)、varchar(n) n 代表是字符;最多存储 1GB。
在 openGauss 里,char(n)、varcahr(n) n 代表的是字节,nvarchar2(n) n 代表是字符;最多存储 100MB。
null 与 空字符
在 postgresql 里 null != ‘’
在 openGauss 里‘’转换成 null,没有‘’