如何找到postgres类型的input_function

时间:2019-03-22 19:16:55

标签: postgresql

Postgres类型是用input_function创建的,它定义了如何将类型的文本表示转换为内部表示。如何找到给定类型的input_function的名称?

尤其是我在寻找::date时发生的情况,但我也对常规答案感兴趣。

1 个答案:

答案 0 :(得分:1)

请参见PostgreSQL文档中的pg_type

=# select typname, typinput,typoutput from pg_type where typname='date';

 typname | typinput | typoutput 
---------+----------+-----------
 date    | date_in  | date_out