Re: Fix src/test/subscription/t/029_on_error.pl test when wal_debug is enabled
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Ilyasov Ian <ianilyasov@outlook.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>, "Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, "a.voloshin@postgrespro.ru" <a.voloshin@postgrespro.ru>
Date: 2024-05-23T05:26:12Z
Lists: pgsql-hackers
On Wed, May 22, 2024 at 02:24:37PM +0000, Ilyasov Ian wrote: > I corrected my patch according to what I think > Michael wanted. I attached the new patch to the letter. Thanks for compiling this patch. Yes, that's the idea. - qr/processing remote data for replication origin \"pg_\d+\" during message type "INSERT" for replication target relation "public.tbl" in transaction \d+, finished at ([[:xdigit:]]+\/[[:xdigit:]]+)/ + qr/ERROR: duplicate key.*\n.*DETAIL:.*\n.*CONTEXT:.* finished at ([[:xdigit:]]+\/[[:xdigit:]]+)/m There are three CONTEXT strings that could map to this context. It seems to me that we should keep the 'for replication target relation "public.tbl" in transaction \d+,', before the "finished at" so as it is possible to make a difference with the context that has a column name and the context where there is no target relation. That makes the regexp longer, but it is not that bad. -- Michael
Commits
-
Improve stability of subscription/029_on_error.pl
- 8e16f81f3db4 15.8 landed
- 338fb8714c6c 16.4 landed
- ac8c85d04b13 17.0 landed