Postgres类型是用input_function
创建的,它定义了如何将类型的文本表示转换为内部表示。如何找到给定类型的input_function
的名称?
尤其是我在寻找::date
时发生的情况,但我也对常规答案感兴趣。
答案 0 :(得分:1)
请参见PostgreSQL文档中的pg_type
。
=# select typname, typinput,typoutput from pg_type where typname='date';
typname | typinput | typoutput
---------+----------+-----------
date | date_in | date_out