2

即使我添加了扩展名,我也会收到错误btree_gist消息temporal_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
4

1 回答 1

1

如果你在谈论这个扩展,我并不感到惊讶。

该扩展未定义名为period.

于 2018-05-04T13:44:48.743 回答