Getting ERROR: type "period" does not exist, even i have added btree_gist and temporal_tables extensions

Getting ERROR: type "period" does not exist, even i have added btree_gist and temporal_tables extensions

即使我添加了 btree_gisttemporal_tables 扩展程序,我仍然遇到错误。

postgres=# \dx

      Name       | Version |   Schema   |                  Description                  
-----------------+---------+------------+-----------------------------------------------
 btree_gist      | 1.1     | public     | support for indexing common datatypes in GiST
 plpgsql         | 1.0     | pg_catalog | PL/pgSQL procedural language
 temporal_tables | 1.2.0   | public     | temporal tables

(3 行)

CREATE TABLE b (p PERIOD);
ERROR:  type "period" does not exist
LINE 1: CREATE TABLE b (p PERIOD);

版本详情

postgres=# select version();
                                           version                                           
---------------------------------------------------------------------------------------------
 PostgreSQL 9.5.12 on x86_64-alpine-linux-musl, compiled by gcc (Alpine 5.3.0) 5.3.0, 64-bit

如果你说的是this extension,我并不感到惊讶。

该扩展未定义名为 period 的数据类型或域。