Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iI7YB-0003xk-DW for pgsql-performance@arkaria.postgresql.org; Wed, 09 Oct 2019 08:42:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iI7YA-0000BX-2l for pgsql-performance@arkaria.postgresql.org; Wed, 09 Oct 2019 08:42:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iI7Y9-0000BM-My for pgsql-performance@lists.postgresql.org; Wed, 09 Oct 2019 08:42:25 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iI7Y6-0002Rh-PC for pgsql-performance@lists.postgresql.org; Wed, 09 Oct 2019 08:42:24 +0000 Received: from [192.168.127.1] (port=51584 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1iI7Y2-000Kt0-Qe; Wed, 09 Oct 2019 08:42:18 +0000 Received: from localhost ([127.0.0.1]:36240 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.92.1 (FreeBSD)) (envelope-from ) id 1iI7Y2-0006XI-M8; Wed, 09 Oct 2019 08:42:18 +0000 From: Andrew Gierth To: Ogden Brash Cc: pgsql-performance@lists.postgresql.org Subject: Re: Modification of data in base folder and very large tables In-Reply-To: (Ogden Brash's message of "Tue, 8 Oct 2019 13:20:43 -0700") Message-ID: <87lftuz56q.fsf@news-spur.riddles.org.uk> References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (berkeley-unix) Date: Wed, 09 Oct 2019 09:42:18 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Ogden" == Ogden Brash writes: Ogden> I have a question about the files in Ogden> .../data/postgresql/11/main/base, specifically in relation to Ogden> very large tables and how they are written. Ogden> I have been attempting to restore a relatively large database Ogden> with pg_restore and it has been running for more than a week. Did you do the restore into a completely fresh database? Or did you make the mistake of creating tables and indexes first? What relation does the filenode 27083 correspond to? You can find that with: select oid::regclass from pg_class where pg_relation_filenode(oid) = '27083'; -- Andrew (irc:RhodiumToad)