| From: | cca5507 <cca5507(at)qq(dot)com> |
|---|---|
| To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
| Cc: | shveta malik <shveta(dot)malik(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Logical replication launcher did not automatically restart when got SIGKILL |
| Date: | 2025-07-26 09:27:15 |
| Message-ID: | tencent_7002D5A2A4C0CAF4E15D1CB0D851845E140A@qq.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
The test case seems to have a problem:
We cannot ensure that the SELECT happens after the pg_stat_activity can show the logical replication launcher.
With the following patch the test will fail (without the patch it may happen very rarely):
diff --git a/src/backend/replication/logical/launcher.c b/src/backend/replication/logical/launcher.c
index 742d9ba68e9..1e155587c55 100644
--- a/src/backend/replication/logical/launcher.c
+++ b/src/backend/replication/logical/launcher.c
@@ -1162,6 +1162,7 @@ ApplyLauncherMain(Datum main_arg)
* Establish connection to nailed catalogs (we only ever access
* pg_subscription).
*/
+ sleep(100);
BackgroundWorkerInitializeConnection(NULL, NULL, 0);
/*
--
Regards,
ChangAo Chen
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Etsuro Fujita | 2025-07-26 11:29:19 | Re: Document transition table triggers are not allowed on views/foreign tables |
| Previous Message | Alexander Lakhin | 2025-07-26 09:00:01 | Re: stats.sql might fail due to shared buffers also used by parallel tests |