【发布时间】:2019-05-06 07:35:40
【问题描述】:
我使用带有复制功能的 Postgres 数据库。
我在 postgres 函数中使用了临时表。通过加入更新临时表时,我无法更新它。
下面是 Postgres 查询(tempallergyupdates 是临时表):
drop table if exists tempallergyupdates;
create temp table tempallergyupdates(patientallergyid int,updateid int, newupdateid int);
update tempallergyupdates set patientallergyid = 1;
以上查询抛出以下异常:
无法更新表“tempallergyupdates”,因为它没有 复制身份并发布更新
【问题讨论】:
标签: database postgresql database-replication