默认值在创建时进行解析(早期绑定!)。你在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
设置无关。他们明确地设置了它。因此,您所看到的与转储/还原周期无关。