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 1gOHq3-0006CN-RW for pgsql-general@arkaria.postgresql.org; Sun, 18 Nov 2018 07:49:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gOHq1-0005bo-7Q for pgsql-general@arkaria.postgresql.org; Sun, 18 Nov 2018 07:49:49 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOHq0-0005bh-Qh for pgsql-general@lists.postgresql.org; Sun, 18 Nov 2018 07:49:49 +0000 Received: from vps01.wiesinger.com ([46.36.37.179]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOHpt-0000aE-Fq for pgsql-general@postgresql.org; Sun, 18 Nov 2018 07:49:47 +0000 Received: from wiesinger.com (wiesinger.com [84.113.44.87]) by vps01.wiesinger.com (Postfix) with ESMTPS id 75A089F3A3 for ; Sun, 18 Nov 2018 08:49:38 +0100 (CET) Received: from [192.168.0.14] ([192.168.0.14]) (authenticated bits=0) by wiesinger.com (8.15.2/8.15.2) with ESMTPSA id wAI7n6ms020879 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sun, 18 Nov 2018 08:49:33 +0100 DKIM-Filter: OpenDKIM Filter v2.11.0 wiesinger.com wAI7n6ms020879 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wiesinger.com; s=default; t=1542527374; bh=b95qqNaEILw5f3fCgwLD4zloiGaaIg0EKPetJB196Sk=; h=From:Subject:To:Date:From; b=IQBVpkVwAorm4Kk5qB61Px1NofsGB9NHEH+I88Hrvhm4dPnoQ04koGTSWGTMWDAot fT3pbNxorJH1nGtYkKm3ua2bfpzrqLqyV3kaPpjZS++sTEDi3fy6EfH7vFasyYf1vm 5lcc20LWg3ZURRifskyda6p6y3onESU2ex8T+XL6TNiJvPCBWD+wCcnoRycb1T4HKI bLchE0QmifxxhNH9i+Cl11pkwQKJMSpu0tDPqzyl8oFZ8SFBKFNe8z2nWWlSpHiF/z X8DJvSoTpXpm+iRX37fyJeN133niXum0fx77r6hQEBOzrUiOhHjaHdWCdBmBroDsiu koIKVz36B7YZagAgsB6hB45f1NXU87859ephqXofUytZZRoq8cG/b3mJwrfqOUAUy2 TZqFv3E7aX6h+iElBfQUamKnFf05MMuq5UZOkozDgUOfWox9QLriB9uaimelp7skm7 jCUOmW24IziYIMFZYrLvlK9CUdEnwqtqUy7EZRz0ZHWU6w7m56EvvU0xy/mD0HjZly vqHDAideE7dPtaulfvskkHbOuhGC4HxSXgTerpKiHDZsS1G4dgicIqyaGm3ats+AiP g19O1qWEB2N4dWwXg80WjKrf29EQp20Ti0sLAAMhrAxrZUielbWC2qNAdZfXMyHUAF BISnLYqn1FEJ9X48LZDlG+VQ= From: Gerhard Wiesinger Subject: PostgreSQL MVCC and alternative REDO implementation - my thoughts To: pgsql-general@postgresql.org Message-ID: Date: Sun, 18 Nov 2018 08:49:06 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, I just read that blog article and I think switching to REDO logic is not a good idea. REDO has the following disadvantages, think of the following scenario: Delete a lot of rows having 1 petabyte of data. 1.) PostgreSQL: has just do mark the rows as deleted, afterwards they have to be cleaned up by (auto)vacuum. No data has to be written! Will be quite fast. 2.) REDO logic: The deleted 1 petabyte of data (!) has to written for crash consistency reasons at least into REDO files. And that might take time, hours, days, weeks, month. So please don't give up the implementation of PostgreSQL MVCC. https://wiki.postgresql.org/wiki/MVCC What's the plan? Thank you. Ciao, Gerhard