Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jIihU-0003CX-Ov for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2020 00:54:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jIihT-00046a-An for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2020 00:54:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIihT-00046T-46 for pgsql-hackers@lists.postgresql.org; Mon, 30 Mar 2020 00:54:47 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jIihO-0007pw-PJ for pgsql-hackers@postgresql.org; Mon, 30 Mar 2020 00:54:46 +0000 Received: from Davids-MacBook-Pro.local (c-73-39-102-148.hsd1.va.comcast.net [73.39.102.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id B9A7A546A6; Mon, 30 Mar 2020 00:54:41 +0000 (UTC) Subject: Re: backup manifests To: Robert Haas , Noah Misch Cc: Stephen Frost , Amit Kapila , Suraj Kharage , tushar , Rajkumar Raghuwanshi , Rushabh Lathia , Tels , Andrew Dunstan , PostgreSQL Hackers , Jeevan Chalke , vignesh C References: <20200323224217.GN13712@tamriel.snowman.net> <20200325133106.GS13712@tamriel.snowman.net> <20200325205433.GV13712@tamriel.snowman.net> <16538d02-fd4b-6c4f-81a5-132c8fe8c3e9@pgmasters.net> <20200329034010.GB2247658@rfd.leadboat.com> From: David Steele Message-ID: Date: Sun, 29 Mar 2020 20:54:41 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/29/20 8:42 PM, Robert Haas wrote: > On Sat, Mar 28, 2020 at 11:40 PM Noah Misch wrote: >> I don't see this freed anywhere; is it? (It's useful to make peak memory >> consumption not grow in proportion to the number of files backed up.) > > We need the hash table to remain populated for the whole run time of > the tool, because we're essentially doing a full join of the actual > directory contents against the manifest contents. That's a bit > unfortunate but it doesn't seem simple to improve. I think the only > people who are really going to suffer are people who have an enormous > pile of empty or nearly-empty relations. People who have large > databases for the normal reason - i.e. a reasonable number of tables > that hold a lot of data - will have manifests of very manageable size. +1 -- -David david@pgmasters.net