Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何显示用户';postgresql中的udt定义?_Postgresql_User Defined Types - Fatal编程技术网

如何显示用户';postgresql中的udt定义?

如何显示用户';postgresql中的udt定义?,postgresql,user-defined-types,Postgresql,User Defined Types,我知道udt定义依赖于pg_catalog.pg_类型,但是否有其他表格可以获取其列/元素?用户定义类型的列可以从表格中读取: 其中,类型名可以是模式限定的。我在许多相关的答案中写了关于pg_属性和regclass。搜索更多…感谢您的回复。我发现在不知道“pg_属性”的情况下搜索udt元素有点棘手。 SELECT * FROM pg_attribute WHERE attrelid::regclass = 'my_type_schema.my-type_name'::regclass

我知道udt定义依赖于pg_catalog.pg_类型,但是否有其他表格可以获取其列/元素?

用户定义类型的列可以从表格中读取:


其中,类型名可以是模式限定的。我在许多相关的答案中写了关于
pg_属性
regclass
。搜索更多…

感谢您的回复。我发现在不知道“pg_属性”的情况下搜索udt元素有点棘手。
SELECT *
FROM   pg_attribute
WHERE  attrelid::regclass = 'my_type_schema.my-type_name'::regclass