How to list custom types using Postgres information_schema

后端 未结 7 1338
遥遥无期
遥遥无期 2020-12-28 12:40

I am trying to find the equivalent SQL of \\dT using the information_schema and can\'t seem to find anything. Does such a thing exist?

Example: If I add the followi

7条回答
  •  醉梦人生
    2020-12-28 12:47

    Enums are not in the SQL standard and therefore not represented in the information schema. Other user-defined types would normally be in the view user_defined_types, but that's not implemented. So at the moment, you can't use the information schema to list user-defined types in PostgreSQL.

提交回复
热议问题