Objectidentifier 数据类型 'regoper' 上的 Postgresql Insert 语句返回错误 'SQL Error [42725]: ERROR: more than one operator named +' 即使给出了单个运算符值
嗨,我为 Postgresql 的所有对象标识符数据类型创建了一个表。相同的DDL语句如下:
CREATE TABLE public.objectidentifiers (
pk int4 NOT NULL,
col_oid oid NULL,
col_regclass regclass NULL,
col_regcollation regcollation NULL,
col_regconfig regconfig NULL,
col_regdictionary regdictionary NULL,
col_regnamespace regnamespace NULL,
col_regoper regoper NULL,
col_regoperator regoperator NULL,
col_regproc regproc NULL,
col_regprocedure regprocedure NULL,
col_regrole regrole NULL,
col_regtype regtype NULL,
CONSTRAINT objectidentifiers PRIMARY KEY (pk)
);
public 是架构名称,objectidentifiers 是表。
我正在尝试执行此插入操作:
INSERT INTO public.objectidentifiers VALUES
(1,
564182,
'pg_type',
'"POSIX"',
'english',
'simple',
'pg_catalog',
'+',
'*(integer,integer)',
'"SRC"."area_equal_procedure"',
'sum(int4)',
'postgres',
'integer'
);
但这给出了以下错误:
“SQL查询执行时出错
理由: SQL 错误 [42725]:错误:不止一个名为 +
的运算符位置:114"
有人能告诉我 Insert 语句中有什么问题吗,即使我为数据类型使用了正确的值