您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

什么时候/如何将默认值表达式函数与search_path绑定在一起?

什么时候/如何将默认值表达式函数与search_path绑定在一起?

认值在创建时进行解析(早期绑定!)。你在psql里,pgAdmin的或其他客户看到的是一个文本表示,但事实上,该OID功能Now()在创建列认的时间存储在系统目录中pg_attrdef。我引用:

adbin   pg_node_tree  The internal representation of the column default value
adsrc   text          A human-readable representation of the default value

当您更改时search_path,这会使Postgres显示限定模式的函数名称,因为使用current不能再正确解析该函数??的名称search_path

转储和还原与您的自定义search_path设置无关。他们明确地设置了它。因此,您所看到的与转储/还原周期无关。

其他 2022/1/1 18:47:38 有452人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶