Re: [BUG] Logical replica crash if there was an error in a function.
Anton A. Melnikov <aamelnikov@inbox.ru>
From: "Anton A. Melnikov" <aamelnikov@inbox.ru>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Maxim Orlov <orlovmg@gmail.com>
Date: 2022-09-08T08:47:06Z
Lists: pgsql-hackers
Attachments
- v4-0001-Fix-logical-replica-assert-on-func-error.patch (text/x-patch) patch v4-0001
- repcmd.sql (application/sql)
Hello!
Added a TAP test for this case.
On 30.08.2022 10:09, Anton A. Melnikov wrote:
> Hello!
>
> The patch was rebased on current master.
> And here is a simplified crash reproduction:
> 1) On primary with 'wal_level = logical' execute:
> CREATE TABLE public.test (id int NOT NULL, val integer);
> CREATE PUBLICATION test_pub FOR TABLE test;
>
> 2) On replica replace XXXX in the repcmd.sql attached with primary port and execute it:
> psql -f repcmd.sql
>
> 3) On master execute command:
> INSERT INTO test VALUES ('1');
>
With best regards,
--
Anton A. Melnikov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
Commits
-
Avoid crash after function syntax error in a replication worker.
- dea834938005 16.0 landed
- f2dc7f9e35a2 15.1 landed
- ed019b5ef955 11.18 landed
- d9ffccf8db4b 12.13 landed
- b00f342ea0f0 13.9 landed
- 5f3cec77b1b5 10.23 landed
- 2489c38cdc58 14.6 landed