[GENERAL] Logical replication + before trigger = ERROR: attempted to lockinvisible tuple - Mailing list pgsql-general

From Thomas Rosenstein
Subject [GENERAL] Logical replication + before trigger = ERROR: attempted to lockinvisible tuple
Date
Msg-id 264A599D-9D31-415F-B8AB-6CBD320F9B98@creamfinance.com
Whole thread Raw
List pgsql-general
Hi,

I'm trying to execute a BEFORE UPDATE trigger for my logical replication 
subscription with Postgresql 10.1 but the apply worker crashes with:

ERROR:  attempted to lock invisible tuple


The trigger creation:

CREATE TRIGGER customers_anonymize_before_update BEFORE UPDATE ON 
customers FOR EACH ROW EXECUTE PROCEDURE customers_anonymize();

The "BEFORE INSERT" trigger seems to work fine.

I found this Issue on 2ndQuadrant: 
https://github.com/2ndQuadrant/pglogical/issues/97

Is this on the radar? Is it already fixed?

Thanks
BR
Thomas


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

pgsql-general by date:

Previous
From: Andreas Joseph Krogh
Date:
Subject: Re: [GENERAL] PG-10 + ICU and abbreviated keys
Next
From: Peter Geoghegan
Date:
Subject: Re: [GENERAL] PG-10 + ICU and abbreviated keys