如何找到postgres类型的input_function

问题描述 投票:0回答:1

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

特别是我正在寻找当你做::date时会发生什么,但我也对一般的答案感兴趣。

postgresql
1个回答
1
投票

请参阅PostgreSQL文档中的pg_type

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

 typname | typinput | typoutput 
---------+----------+-----------
 date    | date_in  | date_out
© www.soinside.com 2019 - 2024. All rights reserved.