Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sFG8X-000YMx-24 for pgsql-general@arkaria.postgresql.org; Thu, 06 Jun 2024 16:38:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sFG8V-0021jh-Aw for pgsql-general@arkaria.postgresql.org; Thu, 06 Jun 2024 16:38:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sFG8U-0021jZ-SW for pgsql-general@lists.postgresql.org; Thu, 06 Jun 2024 16:38:47 +0000 Received: from mail-am6eur05on2126.outbound.protection.outlook.com ([40.107.22.126] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sFG8S-000K2w-H8 for pgsql-general@lists.postgresql.org; Thu, 06 Jun 2024 16:38:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YvsdV9d42xWnkXxcrEHeyTet5QWffYNnQ44h5ebAJzstaBU0OWyegvOL5WHTUfpD5fxIkqcikUpHCTbsWZtvj9TuI/4J/XA2bFsZ2P2jh1lqOWzSuXWNWY2Bteq5LxNBcaxVXhnUFrVC96ppEozDsc3eBK3joVl+LCUXmapRroY5EIxTIWT+5wLBYR8Fl+zq1Qxf2PCtDmHDB6vQslmPm6DuxdSZS7GHFQwce6OuCngzPAC8FYBrsHD8b++dHZZQASyxgxfH6RtZlv2aVbM9wL6gN+APhiG7lbAmRcrtuNTodM6Jc2jEkEwxARs71cyJxayIM63c7oldjqhw9rxEIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RCaq2WgcrNQ/y5ckKbMzlkN0TYDgMFyxo0PyIu0IXcI=; b=l9SeLH48R2yT8cf4aY7UQV1/KfQQT+fKzmweKWxaWoPNE+PR+tW4xk4n8pBOs3P0RzasjRvnZMEjzUKwuREUzrmTFK/xC3m5kUp8Vj1PIqjCb2jBC9ShOYcDy24xpcHRvXGE6WxdvYgFmoIAEI4k8rfvqGIIPn841TiHKGa3JgTEZqIT83kzb5xTfyt9hzOM0PWEBeoGHwip9QMPSvqRKvi4Lvrw1TugMsSqQGssJE69vfD05YYlwY6XK31SUAYmJLqMJB0oSV5oGQ97DPNmTd4AkbuSmoGEOx3B8yHDo38oqoqSubJqMqNQNNouz7dGrLkMkX+ZDgVyaQu4kawD1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=gilat.com; dmarc=pass action=none header.from=gilat.com; dkim=pass header.d=gilat.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gilat.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RCaq2WgcrNQ/y5ckKbMzlkN0TYDgMFyxo0PyIu0IXcI=; b=Q/OBHctgh9dydPNiHtl0NBnVIagneJ6j9DoKEw5RRbs+A+x82GpdPMEFU7fxhZrEDaDPf5D0MW8voBbaxWZ3vAMRY4BPULaJVpQ9kuyOEi6IwMfq0AXnYGvVutaK4KvuN6eswDPK1DyGTP9dHdjcuAxeUtz/j/hHRlQTQWlPsiI= Received: from DB9PR07MB7180.eurprd07.prod.outlook.com (2603:10a6:10:215::5) by AS8PR07MB7877.eurprd07.prod.outlook.com (2603:10a6:20b:39a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.33; Thu, 6 Jun 2024 16:38:40 +0000 Received: from DB9PR07MB7180.eurprd07.prod.outlook.com ([fe80::270e:36ee:e6c1:1c92]) by DB9PR07MB7180.eurprd07.prod.outlook.com ([fe80::270e:36ee:e6c1:1c92%4]) with mapi id 15.20.7633.021; Thu, 6 Jun 2024 16:38:40 +0000 From: Avi Weinberg To: pgsql-generallists.postgresql.org Subject: Tables get stuck at srsubstate = f Thread-Topic: Tables get stuck at srsubstate = f Thread-Index: Adq4Lj6RGx/imOBjS1OdA61z0oxnhQ== Date: Thu, 6 Jun 2024 16:38:39 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=gilat.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DB9PR07MB7180:EE_|AS8PR07MB7877:EE_ x-ms-office365-filtering-correlation-id: e81cbcc3-99f3-4fb5-884b-08dc86471ef4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230031|366007|1800799015|376005|38070700009; x-microsoft-antispam-message-info: =?us-ascii?Q?3Xuh+rFrf0NatbyAlLp8UIuw2dCRuBjIiw6bzq0iEuQPzEEUC9GxfSkBRkYz?= =?us-ascii?Q?l4rE5d1+s02TTyL+NjmA7Rh6WI/03C4OHWIjReI3vnSkC06QUg/N7ntpLHCf?= =?us-ascii?Q?+eABmY1rOedOwKoFM06BoisnIy+tsv84o/alPHHNmocA8hPkCn06ImGeHSal?= =?us-ascii?Q?nCBp5puP2Z18Q+nLrkHokrrK6dV4Yrb3JD0g7c/yST1MJexdMhBEvR82CudK?= =?us-ascii?Q?s931FjOS5CqzVZqePRmIywL5w96m0r4aV6T9eP69POgcXazN/tscMHlSN4xW?= =?us-ascii?Q?U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YMZj3VzBNbm/GFJ?= =?us-ascii?Q?uE4OIRP1i0DL/9BR+bwAO30Xk0yIx95vk6g2NdJOsS/5oE5vGiuO21Foyf4U?= =?us-ascii?Q?aaWdWCQjtRdpXepk5uwlAnTLwr4odiPhlszvXYNAQTKFLtBoi/6/sQA+tgyf?= =?us-ascii?Q?DC7QyZ0mEfejXttMZWHU1MoGUoyJgQGziv1BrJJfznvlURIUhA6AUkHJS1Rw?= =?us-ascii?Q?52GPBN0=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR07MB7180.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(1800799015)(376005)(38070700009);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?E+J/BcI/IQojTbEy8ItE3yHbc+dJF0VZZCCrRst4Mo+5OMQMzxEPLXSZowdb?= =?us-ascii?Q?YgN5W0SPWbIXBrGURrNwz6Od2DOyanpSuNHRjNwCTs3nsNaekt6CPPcS8rDj?= =?us-ascii?Q?IehXSCcKvbNCdmqkgmdJDpfI+q6EjeCg0dVB9/aDiM8XDuaWKbbr3Fi6GSpb?= =?us-ascii?Q?3yAtvdQqqIAqbaWbG2uh0pbUU+59vq7NB6J2xCE8JEyq2ZFkqo62s+WUlUw3?= =?us-ascii?Q?nBmKldAzvgfzs6RVUF49F0s1kXma3eTePI/T253XWrWVDrRWSEgG/lM1T0UD?= =?us-ascii?Q?kZWGbURqtcTQCXWuqfE6DquN3+Fp5Qu3/7w21wcROqEwkqrQfbZbIZs3HLNA?= =?us-ascii?Q?ZyElmOvovNByijR6q4zaQXTS5HWK3MLWS88mIdA+kn57sttUCcIMPaSPWRle?= =?us-ascii?Q?EsAUWwqYjWb7nULEdisdRoAmcWgVEno/U9Jfjj8hWb554SDSf345iicHfFUS?= =?us-ascii?Q?wN5yrxpyA9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Xbhd95Bv?= =?us-ascii?Q?yAirKuh4wVnX7srp1MrNFOX766ORKcWOwi7RDLNZFoZkYM8PgRyHBEfDEDd7?= =?us-ascii?Q?2koiGSbAkBhDzH9YmN+gS9iLQAc+fh+JXl/+CoCdpapc18jABqsABplNDC93?= =?us-ascii?Q?HrP8Dktgm+Je88by2MHF/GFm/6DAG3wLUcz9Y2MPcIRym/xjoYGAv4BpFxim?= =?us-ascii?Q?k2OgDZMxnzQkcCQfr5M=3D?= Content-Type: multipart/alternative; boundary="_000_DB9PR07MB71805B7673176FA26D81ABC2CBFA2DB9PR07MB7180eurp_" MIME-Version: 1.0 X-OriginatorOrg: gilat.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB9PR07MB7180.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e81cbcc3-99f3-4fb5-884b-08dc86471ef4 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jun 2024 16:38:39.9824 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7300b1a3-573a-4010-92a6-1c65cd85e927 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: l6hdPcQfcFGEubT+p3vHuFPhFkm5WdT5VBQWo4spFa0X3yHOXKRjI4xZ+MP5tZBE X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7877 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_DB9PR07MB71805B7673176FA26D81ABC2CBFA2DB9PR07MB7180eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, I'm using logical replication with Postgres 15.2. When creating logical replication on multiple tables, sometimes the initial= sync get stuck for few tables at state srsubstate =3D f. If I recreate th= e logical replication again, it may get stuck at srsubstate =3D f for othe= r tables, so it does not seems to be table specific. If course, in the maj= ority of cases, building the logical replication succeed and all tables are= showing srsubstate =3D r. What might be the reason that logical replication get stuck during initial = sync at srsubstate =3Df? We use this view pg_stat_progress_copy to monitor initial sync. Is it poss= ible that calling this frequently during initial sync causes some lock not = to be released? Is it a Postgres bug? Thanks! IMPORTANT - This email and any attachments is intended for the above named = addressee(s), and may contain information which is confidential or privileg= ed. If you are not the intended recipient, please inform the sender immedia= tely and delete this email: you should not copy or use this e-mail for any = purpose nor disclose its contents to any person. --_000_DB9PR07MB71805B7673176FA26D81ABC2CBFA2DB9PR07MB7180eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi all,

 

I'm using logical replication with Postgres 15.2. 

 

When creating logical replication on multiple tables, sometimes the = initial sync get stuck for few tables at state srsubstate =3D f.  If I= recreate the logical replication again, it may get stuck at srsubstate =3D f  for other tables, so it does not s= eems to be table specific.  If course, in the majority of cases, build= ing the logical replication succeed and all tables are showing srsubstate = =3D r.   

 

What might be the reason that logical replication get stuck during i= nitial sync at srsubstate =3Df? 

We use this view pg_stat_progress_copy to monitor initial sync. = ; Is it possible that calling this frequently during initial sync causes so= me lock not to be released?

Is it a Postgres bug?

 

Thanks!

           &n= bsp;   

IMPORTANT - This email and any attachments is intended for the above named = addressee(s), and may contain information which is confidential or privileg= ed. If you are not the intended recipient, please inform the sender immedia= tely and delete this email: you should not copy or use this e-mail for any purpose nor disclose its conten= ts to any person. --_000_DB9PR07MB71805B7673176FA26D81ABC2CBFA2DB9PR07MB7180eurp_--