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 1sMUvX-002gNk-6s for pgsql-general@arkaria.postgresql.org; Wed, 26 Jun 2024 15:51:19 +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 1sMUvV-005FEe-Ky for pgsql-general@arkaria.postgresql.org; Wed, 26 Jun 2024 15:51:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sMTs3-004pTo-2P for pgsql-general@lists.postgresql.org; Wed, 26 Jun 2024 14:43:39 +0000 Received: from mail-dm6nam12on20700.outbound.protection.outlook.com ([2a01:111:f403:2417::700] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sMTrz-003Eup-GH for pgsql-general@lists.postgresql.org; Wed, 26 Jun 2024 14:43:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D0r/D0NHMUyIGGg38bYwIkw0jQCwWrqdQCO6ldSKpu7vfNpqhd+HgrBzGBFU6N9KmYKig+Bq42L7BhyFfhhvnFZ3aLJIkAsJQCR/sW9VQBajP2il+ARrdweZ9Y6DIaKCTGObb98AbNw216jIFZ7Mb1Sg5DK8huOvbNvCmoUW0+GtBK6dX9jYnYKeocZwdLeoFFUyD4UOBzgQfKSyIDplvj+Za5FWXgZICa6JDWwYOR4mDY0xg/VQcV6HGpjy5id19cBpGMo0qnCj8RpAfn8U+F3L1hFNbXnFZrjPaITO1YvtWXnNzd72n0F/Rpn0+dapd0tbjxSqBvp5xLoBy3V24g== 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=STRMXLhm83yNFWBR61MTc5mVtcoTaV3HV94CoEv+emg=; b=PRWYKYiGBYTa0Td/Ybn92XfeujamoP0muqH8Tnr1NKjqJpIpXRjPrvDLlp/tjxDHNB3uvopshIij/cKDHDhRXnYJ6SUpakZ1GuS1bK1IWL3bnI8ohc6KrCA2RSaAVb6VgSoyuphn3GCdINchGPma3qUiamkSFrenLnyk6NloRUmmYMA8hhXdZ3PGZ9fZ8cO3Dxfh4ulScF5qxP7Yni0b7XBxM4i4eSDlb9G+16j8oqx/SzZNK0WdkdS20/qaXW0dZCrS+Jt2Vcf+mVXKInzfvJZF9z99NFgpHo92QqP+CsIuvnujCepeej+GXHLFTvAYsjbXsUJwsY45p197kQgQ9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=busuu.com; dmarc=pass action=none header.from=busuu.com; dkim=pass header.d=busuu.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=busuu.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=STRMXLhm83yNFWBR61MTc5mVtcoTaV3HV94CoEv+emg=; b=Phx2494SEhOut4yW7Em7OcVIXEp+KMs54ZBzAK98pheRT/9CzpJKd2RNUfN4f7MybldJxvm5EgRLMDRWuhXc44TSAKBAbesv9WBU9LfAeAkJXS4EdYs0dK973mI0cwzj5j586u6RXumRCNvSVjj8jh+KGumO8UX157txVsZ3fohC65f+RqRJMT0VJ0TJVIOU5H+NbrkjoftKzh1cpOwdHhVrYY+AldhOuFFwu1IV/FNK7vEXJnQD3hDBM9FsXdsZEhEOR7NH5wLwT3KJ7TU+IQcUBwv4cdfFGSxu2G4HVrNDkUuJgk/fk3zKlGZfBZzVeim366FIagK88g2HKucIhQ== Received: from PH0PR13MB4937.namprd13.prod.outlook.com (2603:10b6:510:79::16) by BLAPR13MB4625.namprd13.prod.outlook.com (2603:10b6:208:320::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.34; Wed, 26 Jun 2024 14:43:30 +0000 Received: from PH0PR13MB4937.namprd13.prod.outlook.com ([fe80::d97d:6ab0:823c:e280]) by PH0PR13MB4937.namprd13.prod.outlook.com ([fe80::d97d:6ab0:823c:e280%6]) with mapi id 15.20.7698.025; Wed, 26 Jun 2024 14:43:30 +0000 From: Andrew Longwill To: "pgsql-general@lists.postgresql.org" Subject: ERROR: could not attach to dynamic shared area Thread-Topic: ERROR: could not attach to dynamic shared area Thread-Index: AQHax9YD36ywoG3WsEq0Jsa2UtnTuw== Date: Wed, 26 Jun 2024 14:43:30 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=busuu.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH0PR13MB4937:EE_|BLAPR13MB4625:EE_ x-ms-office365-filtering-correlation-id: e5e33b82-a8e4-49fc-a47a-08dc95ee589e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230038|366014|1800799022|376012|38070700016; x-microsoft-antispam-message-info: =?Windows-1252?Q?i9ZZiZ8VHoqS5G+Dq8jg76Mbzx29FX4K5pgFtEv2KLzjyVjcP0Fo/9Av?= =?Windows-1252?Q?vrW4LKNqnutmzJ93UXq05q307wXZE6oaV8xY8p6FgQnxNq8q2rqH+6VR?= =?Windows-1252?Q?2WnXF+rV9G9YunnxIj0MvbCA5D/Z/skT6wy3AXc8x2SsM1ZRYOFeQJKC?= =?Windows-1252?Q?GqdTVzfEJdQ3rhkOpJKlPySRG9J9fDHwY4zuKZqDE6PY5i46onrNrmQJ?= =?Windows-1252?Q?FTDgjQhiFhz3xmbMYgCDwnwBC2tZihzZgFGNRX4UyvcamVdSqebNLfVq?= =?Windows-1252?Q?wtt7+qijOB7JT22vn8U0A5uNeDqRSPppRIaVoNR+KPAlwKX2HS6o/7dz?= =?Windows-1252?Q?hgTLJmwRP/BkuGX3mgKzoeDtrAw3BKoCZ9daNN+bvdE/1gwQNEiWhQFC?= =?Windows-1252?Q?VdHPSr/jkATjSQ/Jv3IeVJ4hTj53lBXd78x8JgfiqmN8buY24ce+vP6g?= =?Windows-1252?Q?DphZwOUEtPao890heE7Z5W7rd/RC9A0oseCPzUQmJ0FTW4VMEgWYGteZ?= =?Windows-1252?Q?ARUev+jwalc+NuVoGhGs+FpcGAC8Px+vkwjXSBGxGVb8yDeSQWx1Bu4v?= =?Windows-1252?Q?PF55DE8Jb3VP7Gcg9hfjVsqp48FOdVAv/lDKLeR2goC/2MGgwXx2ZvJy?= =?Windows-1252?Q?kjJ4TZDVuJTYqADEJKr/idnmH8kUNmWPFHFYaH038RkxdQg7LRYhi+ei?= =?Windows-1252?Q?RL8kHi17Ufgv2+m4XJzrBMgaCly2AMpX45iqM+lCM6BgtbA7Jb0wWNHP?= =?Windows-1252?Q?ikBqvFF10HGEn9NzFReJPXZXN74TRz1iuAVVVFpC/5nadPkKgWOxAGJ2?= =?Windows-1252?Q?ZRA+/BcAgEWFsm6n+aju9Ja5Ha1edW8jDkW3CzlSihZOC2cYiUnvyMNC?= =?Windows-1252?Q?UIKFSbNstFGeydF+JSdLx08kVBDYGNsWlhyZPInbItJ07iCLYQT9MNPp?= =?Windows-1252?Q?uUiZbTWq8Gd7JB/uNvgwZfoPvHS6sF8qfIFVarUpBysv8HVzaJy+nWw/?= =?Windows-1252?Q?uRX0a5BY3+C6RWByS9Bc9Ju8Wa6IWuaqVySeajrselsAZSBGBV5YRPOs?= =?Windows-1252?Q?UQlk0Ae3Pz4eGZOpB/PPYjfZfG8Ja2CCN6Ng8JGJP/OJkkr6uLbUdnqs?= =?Windows-1252?Q?KhsZSJG1rFQyPaccv1ipUq277+BhqntMofEbXQzpWi+GRqom5zBfQO4l?= =?Windows-1252?Q?qbomPzXsefJVG8m+UX1utqrFoRmd6FZ8FwIN5p9neoQqBic2WwoyQ83p?= =?Windows-1252?Q?iDuoWXbbPzUe/xyuoprbZnj/tQd/jRbYKvn+cLPwahA+eT7K/nog5rD3?= =?Windows-1252?Q?AR9pJ7cbY6qjHZFJZgOTYxGRw24LBGp5NaJOfjyXIyJditAHy7dzN1Vb?= =?Windows-1252?Q?Kb4r5FbCklTsQlrti3tyzQAvCZs90IS0GHV3rGr7WE7YXKQQLbPir96c?= =?Windows-1252?Q?PWzyHYccCr4Oz7YlaaQP/w4/wjYQx7Z6Q+QpbRQCnwrAgoC+T1IgBany?= =?Windows-1252?Q?XqYb4g4HloNwyz34hn/obdgFFqJ/nQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR13MB4937.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230038)(366014)(1800799022)(376012)(38070700016);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?/jEE6iBoqA6L4oVrP20WuXGu6L/nNYlfoQOoi4BP+SY2tCEGk90C2FSq?= =?Windows-1252?Q?k+S8DhZFrA2zyTf/5NZwx6jEPRspIWcE5sfER5ikDDkUKn3ba+xv/OkN?= =?Windows-1252?Q?8SKg10N/0Q4ZUNHYGGSJqxx7ziFjBXlbHXzD9JIf/Vctvgbvtp1nVFxy?= =?Windows-1252?Q?aq6Bycet0cm7RaNlHSrIcxDIvAxwWDlfGtdpNv7QGeC/YGAfKiXk6JSC?= =?Windows-1252?Q?xIHa+NQusQFs5kTjYe/sjGF9B2XenxbAfzcy4z6QeSNB/HkjEv33qzuW?= =?Windows-1252?Q?ojZgmn3YfgPJIdY2RGCYk2NaOFjYtqRWyhVmYngN2UNPBH7XlhZ3LWNh?= =?Windows-1252?Q?DDqLsmxxCuxan8d86COsNHgH78z0OfoXRUx8bQXd/wIc5i18Df9gkwSU?= =?Windows-1252?Q?D6huokHxpXB9dJSefre6PlzAHgt/dsE9qL7LtVIh5UfdIYVk6SLKl3ic?= =?Windows-1252?Q?wt9cK9wBUGDDtOSedGvncFBWwb9CFdsI8cgGyTQJEYfcFfddkdwKwevv?= =?Windows-1252?Q?MI695sp1gCgW+sBo6AN0M/FXveSubu7+eXPxcDgkANWB2RaC1P3ROXYd?= =?Windows-1252?Q?54y3IWwfv4dm7jeTjj11/v6up7TXaZsilR6W6dBYN4nX4wkXveQj5ldM?= =?Windows-1252?Q?Xw1CzhlV3E52G5BaPkk4I78v1tP44I0bwFYCMh05pifRaabZQRBwR+HJ?= =?Windows-1252?Q?goIu6joSd1y3yF4pP8zmGtSs3uKcGI9uvHj6gi5zWsLyf3WPnJgJZNrl?= =?Windows-1252?Q?IF5OQkZ/egc26Vce76abCwkhTJmLT/2hEGoV2Xg2OEpVVOyGatI8N/Pl?= =?Windows-1252?Q?b93Kwm25/zQM/igje935H4YOMjsshBUzFYZmwqNAxfVWUHe/qwGa05Ti?= =?Windows-1252?Q?uDhWh31QT+/86ydiDU/k95XAkVHORDgAj9OSJzj/lO9jgkZrOBlmJZHg?= =?Windows-1252?Q?jV+vGE69DAo8czEX+BEgAm2DqUGVu8A8sewF/iSHpk1Nm/07r6wCdR60?= =?Windows-1252?Q?AI9z4u/2XqXs/TpWDMgqGqCNrySagvED7SzuQFmEKapyHaBmS23De6L3?= =?Windows-1252?Q?izLMNabmCFvifwvOBZ1x47UI5Hwl9hAq2HjxkDpXj83YbQEkG4qT8XkG?= =?Windows-1252?Q?Lx2sLtNlMt7qSc0TkWEg7Jtqp15qrSix4ugOrQWgcWGAKHBBGxkylAlL?= =?Windows-1252?Q?cBBxFsOTvOvFpkjljssa7rPpbFGU+w/D/soETJb6D5plM7fPhZtgzxZN?= =?Windows-1252?Q?k280YybnW2CDBiBjrLvJBmU8SZ6itMzcO2WcS9p9HSAoV85fF8VWRxfi?= =?Windows-1252?Q?fN9ukB+a+ygp2RXVxLt7LXmSciFw3UITCJ1ayGVzQ/Rk/dLAVpzGQGgp?= =?Windows-1252?Q?4ObHsgiDXm8LGJ8KMPY5DpJXyCeeM5mEl2EKpIvzEY8ovjDrutMz85LF?= =?Windows-1252?Q?afRGuA9razZ0VtUCTo6uRhH9J1oNSGT7aNPV9oSZ5/8yKMSlU4JGWo+7?= =?Windows-1252?Q?LVUiP6Mf6xUJuinr8QnRtoWJfWkggwXYXeTBTMol9FPrq47QFkESR1nc?= =?Windows-1252?Q?hT+xY4QLdetiHX186fwgFFObEMuNZ8kTqOwygpk+uGHDipnKaEKWOdA+?= =?Windows-1252?Q?RuwZIHlbBXJTYLyfDHkVn4o0le6a3geeN7Fl+NlNOjCtbsOa5YmezCi5?= =?Windows-1252?Q?W5uYbvqVPzZ+rJqEgFxI/Q/A6NmRMVvPj4o4K9t/pR5uUyXKp1jsLg?= =?Windows-1252?Q?=3D=3D?= Content-Type: multipart/alternative; boundary="_000_PH0PR13MB49377CC9CCA28EA59EEB27C5DAD62PH0PR13MB4937namp_" MIME-Version: 1.0 X-OriginatorOrg: busuu.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR13MB4937.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5e33b82-a8e4-49fc-a47a-08dc95ee589e X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2024 14:43:30.1303 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 66fbcef1-f5a9-4498-8e6a-eace56c690fb X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nneOK/PG0HP1bePr7oOz3OBPbzCXRdqz0egEaH35GOjdA/52rfT4QJ7NAG4HNyafGhSxb8IPnEoKdRUiwUnrfQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLAPR13MB4625 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_PH0PR13MB49377CC9CCA28EA59EEB27C5DAD62PH0PR13MB4937namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi all, We=92re using Postgresql 15.4 in AWS RDS. Since yesterday we have seen two = occurrences where our PHP application becomes unable to connect to our RDS = replicas. In the application logs we see the error "FATAL: could not attach= to dynamic shared area". The RDS replica remains unusable in this state un= less it=92s rebooted. In the Postgresql replica logs we see the following errors just before the = above error occurs: (I=92ve made the SELECT more succinct) 2024-06-25 21:04:36 UTC::@:[28757]:FATAL: terminating background worker "pa= rallel worker" due to administrator command 2024-06-25 21:04:36 UTC::@:[28757]:STATEMENT: SELECT col1,..,col24 FROM my_= table WHERE =85 DESC LIMIT 1 2024-06-25 21:04:36 UTC::@:[28758]:FATAL: terminating background worker "pa= rallel worker" due to administrator command 2024-06-25 21:04:36 UTC::@:[28758]:STATEMENT: SELECT col1,..,col24 FROM my_= table WHERE =85 DESC LIMIT 1 2024-06-25 21:04:36 UTC::@:[389]:LOG: background worker "parallel worker" (= PID 28757) exited with exit code 1 2024-06-25 21:04:36 UTC::@:[389]:LOG: background worker "parallel worker" (= PID 28758) exited with exit code 1 The same query is mentioned each time, however this is a query we=92ve been= running in production for many years. The query plan for that query is goo= d. AWS have advised that we try setting max_parallel_workers=3D0 and max_paral= lel_workers_per_gather=3D0. Can anyone advise on why we might be seeing this error suddenly? Many thanks Andrew --_000_PH0PR13MB49377CC9CCA28EA59EEB27C5DAD62PH0PR13MB4937namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Hi all,

 

We=92re using Postgresql 15.4 in AWS RDS. Since yest= erday we have seen two occurrences where our PHP application becomes unable= to connect to our RDS replicas. In the application logs we see the error &= quot;FATAL: could not attach to dynamic shared area". The RDS replica remains unusable in this state unless it=92s r= ebooted.

 

In the Postgresql replica logs we see the following = errors just before the above error occurs: (I=92ve made the SELECT more suc= cinct)

 

2024-06-25 21:04:36 UTC::@:[28757]:FATAL: terminatin= g background worker "parallel worker" due to administrator comman= d

2024-06-25 21:04:36 UTC::@:[28757]:STATEMENT: SELECT= col1,..,col24 FROM my_table WHERE =85 DESC LIMIT 1

2024-06-25 21:04:36 UTC::@:[28758]:FATAL: terminatin= g background worker "parallel worker" due to administrator comman= d

2024-06-25 21:04:36 UTC::@:[28758]:STATEMENT: SELECT= col1,..,col24 FROM my_table WHERE =85 DESC LIMIT 1

2024-06-25 21:04:36 UTC::@:[389]:LOG: background wor= ker "parallel worker" (PID 28757) exited with exit code 1

2024-06-25 21:04:36 UTC::@:[389]:LOG: background wor= ker "parallel worker" (PID 28758) exited with exit code 1

 

The same query is mentioned each time, however this = is a query we=92ve been running in production for many years. The query pla= n for that query is good.

 

AWS have advised that we try setting max_parallel_wo= rkers=3D0 and max_parallel_workers_per_gather=3D0.

 

Can anyone advise on why we might be seeing this err= or suddenly?

 

Many thanks

 

Andrew

--_000_PH0PR13MB49377CC9CCA28EA59EEB27C5DAD62PH0PR13MB4937namp_--