http://www.postgres.cn/docs/18/extend-type-system.html
36.2.1. 基本类型 #
基本类型是那些被实现在 SQL 语言层面之下的类型(通常用一种底层语言,如 C),例如 integer。它们通常对应于常说的抽象数据类型。PostgreSQL 只能通过由用户提供的函数在这类类型上操作,并且只能理解到用户描述这种类型行为的程度。第 8 章 中描述了内建的基本类型。
Enumerated (enum) types can be considered as a subcategory of base types. The main difference is that they can be created using just SQL commands, without any low-level programming. Refer to 第 8.7 节 for more information.
http://www.postgres.cn/docs/18/extend-type-system.html
36.2.1. 基本类型 #
基本类型是那些被实现在 SQL 语言层面之下的类型(通常用一种底层语言,如 C),例如 integer。它们通常对应于常说的抽象数据类型。PostgreSQL 只能通过由用户提供的函数在这类类型上操作,并且只能理解到用户描述这种类型行为的程度。第 8 章 中描述了内建的基本类型。
Enumerated (enum) types can be considered as a subcategory of base types. The main difference is that they can be created using just SQL commands, without any low-level programming. Refer to 第 8.7 节 for more information.