Re: Fix src/test/subscription/t/029_on_error.pl test when wal_debug is enabled

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Fix src/test/subscription/t/029_on_error.pl test when wal_debug is enabled
Дата
Msg-id Zk7TdJHQZCRmOFQt@paquier.xyz
обсуждение исходный текст
Ответ на RE: Fix src/test/subscription/t/029_on_error.pl test when wal_debug is enabled  (Ilyasov Ian <ianilyasov@outlook.com>)
Ответы RE: Fix src/test/subscription/t/029_on_error.pl test when wal_debug is enabled
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Will Mortensen
Дата:
Сообщение: Re: [PATCH] LockAcquireExtended improvement
Следующее
От: "Hayato Kuroda (Fujitsu)"
Дата:
Сообщение: RE: Pgoutput not capturing the generated columns