Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJRg3-0005L9-Rd for pgsql-general@arkaria.postgresql.org; Sun, 04 Nov 2018 23:19:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gJRg2-0002j6-3C for pgsql-general@arkaria.postgresql.org; Sun, 04 Nov 2018 23:19:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJRg1-0002iz-RQ for pgsql-general@lists.postgresql.org; Sun, 04 Nov 2018 23:19:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gJRfv-0005bu-8w for pgsql-general@postgresql.org; Sun, 04 Nov 2018 23:19:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wA4NJFYA022659; Sun, 4 Nov 2018 18:19:15 -0500 From: Tom Lane To: Charles Martin cc: Adrian Klaver , pgsql-general Subject: Re: Trouble Upgrading Postgres In-reply-to: References: <529c7e29-38eb-0b22-379a-f78e638b97bd@aklaver.com> <18968e03-6342-a01e-3423-04642e15390b@aklaver.com> <10885f27-4b59-6e93-38f7-a03c0b96e906@aklaver.com> Comments: In-reply-to Charles Martin message dated "Sun, 04 Nov 2018 17:55:53 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22657.1541373555.1@sss.pgh.pa.us> Date: Sun, 04 Nov 2018 18:19:15 -0500 Message-ID: <22658.1541373555@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Charles Martin writes: > Yep, you called it: > Nov 2 20:30:45 localhost kernel: Out of memory: Kill process 30438 > (postmaster) score 709 or sacrifice child > Nov 2 20:30:45 localhost kernel: Killed process 30438, UID 26, > (postmaster) total-vm:3068900kB, anon-rss:1695392kB, file-rss:1074692kB > So it's running out of memory when trying to dump this table. The "old" > server has 4GB of ram, the "new" server 20GB. That's kind of odd: a COPY shouldn't really consume very much working memory. I suspect that much of the process's apparent VM consumption may be shared buffers ... what have you got shared_buffers set to on the old server? If it's more than half a GB or so, maybe reducing it would help. regards, tom lane