Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYyd4-00065p-S9 for pgsql-admin@arkaria.postgresql.org; Fri, 08 Oct 2021 22:46:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYyd3-0006YI-Q5 for pgsql-admin@arkaria.postgresql.org; Fri, 08 Oct 2021 22:46:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYyd2-0006YA-LX for pgsql-admin@lists.postgresql.org; Fri, 08 Oct 2021 22:46:13 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYycx-0003lu-Rm for pgsql-admin@postgresql.org; Fri, 08 Oct 2021 22:46:12 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A5CE23200C46; Fri, 8 Oct 2021 18:46:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 08 Oct 2021 18:46:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=W/b/AketuchL9vI5b/eWzUR6a6CiS8uRxV/IMX81w4Q=; b=lfYcIfrL YGSVTih/IMkbjxzSLoWJ3ZLt/KNiHabSEAzTPod7zHdzmLuAq5gW2S1cduz8J9vc xkV5IpUb//8PNMfiE5WWCMtl+1TWsEstaH981F8eo3UAqdFToIw5KbjVDLCG1Z93 HOyvb/SECsGG0DyUGx2UufLjg4dP8+nymDk/t8zOyRYAjeumWkjm3N4jj8SksTaP VIVB1AKMo02hXw/36C2a69MUM/M2jKBl6Tpi+cWft/I60kZAcDN5Kd6nnlr4H4Jj ozk4H6LSMXJGAJB5xAZPTFfWklKh75jseQqz++OevdmdzrAy6nbfBNxFISspJ2N1 VLSx7TXisEQxBw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtuddgudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Oct 2021 18:46:02 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 61BAC2A0719; Fri, 8 Oct 2021 19:45:59 -0300 (-03) Date: Fri, 8 Oct 2021 19:45:59 -0300 From: Alvaro Herrera To: Wells Oliver Cc: Tom Lane , Bruce Momjian , pgsql-admin Subject: Re: 13.4 on RDS, SSL SYSCALL EOF on restore Message-ID: <202110082245.4wq5lie5euyx@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Oct-08, Wells Oliver wrote: > Dug out some more logging: > 2021-10-08 20:35:08 UTC::@:[12682]:LOG: server process (PID 3970) was terminated by signal 9: Killed > 2021-10-08 20:35:08 UTC::@:[12682]:DETAIL: Failed process was running: CREATE INDEX ... So what's happening here is that the instance is running out of RAM while creating some index, and the kernel is killing the process. I would probably blame the combination of shared_buffers=4GB with maintenance_work_mem=2GB, together with the instance's total RAM. I would suggest to keep an eye on memory usage (if there is such a thing) in the RDS console; with some experimentation, reducing maintenace_work_mem as Bruce adviced and/or shared_buffers, you can probably find some combination that doesn't take as long as with the default params but is able to complete. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/