对象标识符类型的插入操作的 postgres 函数错误:SQL 错误 [42725]:错误:多个运算符名为 +

问题描述 投票:0回答:0

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 语句中有什么问题吗,即使我为数据类型使用了正确的值

mysql sql postgresql sql-insert postgresql-15
© www.soinside.com 2019 - 2024. All rights reserved.