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 1mdIMi-0006SE-49 for pgsql-admin@arkaria.postgresql.org; Wed, 20 Oct 2021 20:39:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mdIMh-0005hA-2n for pgsql-admin@arkaria.postgresql.org; Wed, 20 Oct 2021 20:39:11 +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 1mdIMg-0005h0-PP for pgsql-admin@lists.postgresql.org; Wed, 20 Oct 2021 20:39:10 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mdIMe-00034m-0G for pgsql-admin@postgresql.org; Wed, 20 Oct 2021 20:39:10 +0000 Received: by mail-qk1-x735.google.com with SMTP id a13so4338040qkg.11 for ; Wed, 20 Oct 2021 13:39:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=lwULgFYZqMCZ28YjHYhQDXQboWeB9/7uvwXHuaOmRq8=; b=aS5vejyP4sYID3EvikUXAA5k1Qf+Bg735hvSRXV5JvlQ2rsCGpQDaEf613EGqDKFtj u8puN0fJcvvcJhprwMS4cVmkn299hFme2EXoKW2SynwgnClTojhvYQCDMUVvdJf0Kd9X Ytuc2mSUbswCT9yDlUL3m0ZrSdaZoWkwjZt2uTpZv/oxQpdnx++8YWw0cFH5dFufsB27 NwhMqsUbovxPPh7r8dMyRVGHQeFzr9rDSVka9aQx9oJnrwDx9mOrvpVdj46rfiP94NYq jZkr1FJxoUnPpENFHobz7ICitPRTltR8bBYqnPnBCQ7ppy/xw3KV6BsML1UWbyh+pmn9 19Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=lwULgFYZqMCZ28YjHYhQDXQboWeB9/7uvwXHuaOmRq8=; b=kfiCG6XJQrWSgTCsBOfZ2aKOTFaoEz4WbcTSs5AKsZk86KG8GukOadG/tRK533g9n7 Js7rNiXMIWTEkr1cGH2qkvWihTlzf64IgHWwgkKENsrT4QBbKq9+WIdF5HXyqH9TKhzp ppXGYZhWXbrlnSEnGzuLH6dN/5jgD5KkR277HFOKGgBUO7fICSd4SHsAkrLAdsjtGprN /TAbEquyRpzQbhw1htrh/pZWwEGzMn1HB7vGmCm0UjPOVTpS3mUscZ71AJock8Nr4ZHG y35wwhf9eqUsg7cLGU7mbFdZOrwjvznkCEmq4tGVHCy0hl5uwspY8BIKGkIWfT8anFRH Wwig== X-Gm-Message-State: AOAM532reJpMfYgYsOGtlVfEnkWfQVSisnxl0cawamaGwmmxHGdOc4wz bppqmMngNzAZXDo4izO+GKw= X-Google-Smtp-Source: ABdhPJyEdZnZ0DpbI2A+TBi7Nsq4lGPdUXWkG6MvqTdTqZodolmi71eMxOo2lZAUqr84q/6FlxA6nw== X-Received: by 2002:ae9:e8c4:: with SMTP id a187mr1101788qkg.431.1634762346209; Wed, 20 Oct 2021 13:39:06 -0700 (PDT) Received: from smtpclient.apple (72-47-90-47.nlsncmtc01.res.dyn.suddenlink.net. [72.47.90.47]) by smtp.gmail.com with ESMTPSA id d186sm1496941qkg.25.2021.10.20.13.39.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Oct 2021 13:39:05 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: John Scalia Mime-Version: 1.0 (1.0) Subject: Re: Understanding was terminated by signal 9: Killed Date: Wed, 20 Oct 2021 16:39:04 -0400 Message-Id: References: <006701d7c5f0$e4ddc100$ae994300$@msym.fr> Cc: Tom Lane , Wells Oliver , pgsql-admin In-Reply-To: <006701d7c5f0$e4ddc100$ae994300$@msym.fr> To: Michel SALAIS X-Mailer: iPad Mail (18G82) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk That would be news to me. Where I currently work we=E2=80=99ve had to do tha= t on several occasions as many of our dbs are in the multi- multi- terabyte r= ange, but some are just references without a lot of traffic. Sent from my iPad > On Oct 20, 2021, at 4:27 PM, Michel SALAIS wrote: >=20 > =EF=BB=BFBe careful! > I am not sure but upgrade for a larger instance can't be temporary. I thin= k you can't downgrade to the original instance class thereafter... >=20 > -- > Michel SALAIS >=20 > -----Message d'origine----- > De : John Scalia =20 > Envoy=C3=A9 : mercredi 20 octobre 2021 01:12 > =C3=80 : Tom Lane > Cc : Wells Oliver ; pgsql-admin > Objet : Re: Understanding was terminated by signal 9: Killed >=20 > You could always change the size of the RDS instance to something larger t= han what it currently is running, even just temporarily. >=20 > Sent from my iPad >=20 >> On Oct 19, 2021, at 6:01 PM, Tom Lane wrote: >>=20 >> =EF=BB=BFWells Oliver writes: >>> In an RDS instance with 16GB RAM, I ran a long query which started by=20= >>> setting temp_buffers to 16GB, so I think I plum ran out of memory,=20 >>> but can anyone point me in a different direction if the following log=20= >>> messages indicate something else is awry? >>=20 >> Yeah, this: >>=20 >>> 2021-10-19 21:10:37 UTC::@:[24752]:LOG: server process (PID 25813)=20 >>> was terminated by signal 9: Killed >>=20 >> almost certainly indicates the Linux OOM killer at work. If you were=20 >> running your own system I'd point you to [1], but I doubt that RDS=20 >> lets you put your hands on the relevant knobs. >>=20 >> regards, tom lane >>=20 >> [1]=20 >> https://www.postgresql.org/docs/current/kernel-resources.html#LINUX-ME >> MORY-OVERCOMMIT >>=20 >>=20 >=20 >=20