[GENERAL] Logical replication + before trigger = ERROR: attempted to lockinvisible tuple

Поиск
Список
Период
Сортировка
От Thomas Rosenstein
Тема [GENERAL] Logical replication + before trigger = ERROR: attempted to lockinvisible tuple
Дата
Msg-id 264A599D-9D31-415F-B8AB-6CBD320F9B98@creamfinance.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Andreas Joseph Krogh
Дата:
Сообщение: Re: [GENERAL] PG-10 + ICU and abbreviated keys
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: [GENERAL] PG-10 + ICU and abbreviated keys