是否可以在 postgresql 中的另一种模式中使用一种模式的枚举类型

Bli*_*lip 3 postgresql schema enums

我有一个关于 postgresql 的问题。我abc在 schema 中定义了一个枚举类型X。现在我想创建一个表,其中包含一个数据类型abc为 schema的列Y。有可能做这样的事情吗?如果是如何?

a_h*_*ame 5

在定义数据类型时,您需要限定架构:

create table y.other_table
(
   some_enum   x.abc
);
Run Code Online (Sandbox Code Playgroud)