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 1ni2k3-0005yR-GK for pgsql-general@arkaria.postgresql.org; Fri, 22 Apr 2022 23:31: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 1ni2k1-0002nZ-I9 for pgsql-general@arkaria.postgresql.org; Fri, 22 Apr 2022 23:31:09 +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 1ni2k0-0002mK-TY for pgsql-general@lists.postgresql.org; Fri, 22 Apr 2022 23:31:09 +0000 Received: from mail-mw2nam10olkn2091.outbound.protection.outlook.com ([40.92.42.91] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ni2jv-0004vL-6W for pgsql-general@lists.postgresql.org; Fri, 22 Apr 2022 23:31:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jFWj+fl1SYVY05GanLKSZSL84AN9VSNh1VD2wboldkm55am8sRo2NJKl4Nk9Amf9CiOwMcP9nUcu45lSWuRUvy3l+FF2VLOrMRLCRickrYQeGejeZ8AsN83AuMWuYylLRRvLx0sJOsN2KqMBHBfPjHd/q9GycZ6LVEVBEWAI6499IEpuPBJpzikLRdKRutIS17oLkUdK2aDWlkrD0uYwNvQJMzXX9lPPr5kuU6ll/plzl3nNlLbUBK6y8uIhcDet7xUC/+CqCB+QtPMf4kNX1uFu/TTJVMfiie8OgYdIkibMDFcordTArnbUCIS033RSfr/h1Z0DbnoZR5rqughHFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=d1Qubb+V++o7Jou7h8lmzsvQjTMJghUBdupWLhO4zAs=; b=HlDCs1eZGDro71fZl+3d87i08sPdaaOrJXu5jYNb3AjJu09pnifUsHTf6r5Bdy+KddGu/RxOn37pMmcyp/naaScSYOa2dFH7kS9GX9WWWUoeCPxT5akyBz/pREll9OhV8jEAZIInz5VcMIgib0/LIFGIgrvQIOlVNNvmNqCHWxSeE3XlyVLVtpbbACPJR3dFEozxuqn228qSIlB92OgwIhCqECk3DthtVEbHwk+rx+sXDTwQH3KK1kPbDdR8rlZqb/XTrCcSpqhqw/qMT9sA6w1R5FtbH48pmxsHbqUqYRJD1Da+/Cu/VHMPKSEonvP7wWmF/nNrRJpkrGw3WV744g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d1Qubb+V++o7Jou7h8lmzsvQjTMJghUBdupWLhO4zAs=; b=mLwKm0W9ndGK74paEj17D5ZsmtxBH8DkAH8HQA+S6rIvpjG5arMUJ9w9eExMLFQfxzUxl7/1vGsbTrxrIMgdFisn3eMHx7bYOT6N42OMH2XoCZlSl/Dw6X7xJfRlqZzM22L3fwh+wahBey4hNFWGzhjS6KIV34IGGDaw9hE4nqHEWlHOzxaYyPcqEaL7ei1OPAwP58R1Pmd/ToPWkBWf/aFDnIx85rap4zVruJb3MDp56G9nwEdhcp6IsHRIDMHgyL6m5nH7/DmSYr1pH714/p3e7GvlC5p6LdBKDILTPnAvCo7O7Wf/qoqjlzIer6QbHYP++Wo85neNkH41P7wdeQ== Received: from DM8PR01MB7016.prod.exchangelabs.com (2603:10b6:8:19::22) by SN6PR01MB5184.prod.exchangelabs.com (2603:10b6:805:b7::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Fri, 22 Apr 2022 23:30:58 +0000 Received: from DM8PR01MB7016.prod.exchangelabs.com ([fe80::b936:ef0e:e085:9bd6]) by DM8PR01MB7016.prod.exchangelabs.com ([fe80::b936:ef0e:e085:9bd6%4]) with mapi id 15.20.5186.015; Fri, 22 Apr 2022 23:30:58 +0000 Content-Type: multipart/alternative; boundary="------------D00bkuIB03nOZCLrLtkyEmv2" Message-ID: Date: Fri, 22 Apr 2022 16:30:54 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: autovacuum_freeze_max_age on append-only tables Content-Language: en-US To: "pgsql-general@lists.postgresql.org" References: From: Senor In-Reply-To: X-TMN: [KyQi0TkEn1BAVCBfDoDs+3E7cFeUBJv0Upvx3givtqlgqZAOKg1PMRFVNrGr+Nm6eHgcz1rQMww=] X-ClientProxiedBy: BY5PR16CA0022.namprd16.prod.outlook.com (2603:10b6:a03:1a0::35) To DM8PR01MB7016.prod.exchangelabs.com (2603:10b6:8:19::22) X-Microsoft-Original-Message-ID: <8ca94415-f906-1896-a164-66cbf4288a7d@hotmail.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a23b611c-9406-4412-bbe0-08da24b82779 X-MS-TrafficTypeDiagnostic: SN6PR01MB5184:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UNzV8kT1Vk7uiDeRhvJZh/xj3UX6WJuvPRHvCAFKQQ5hHQVuND6TR/H/eQumq3VMKBsHWXI8RPLbM3zc0l/oQu9vLu2B5ftcb1z3BoqQG1b4MF8B+vNSHMISnWlJ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malVX?= =?utf-8?B?RU5yaUFmRjEwUUhWejhOaEJxblRrYktKTjJ4Y0xKZHVvWlpZRTNXVnVWMDZx?= =?utf-8?B?QlBvd2wva250VUEvRTE2K1NKenFVMFVtSU0rSkhLbTRMTVVockVuUUlvZjhH?= =?utf-8?B?R3E3bHBkY3dvVE1IeDFiUVJjd200K0RGayt0SzMrYVp2UTBjZnkxYS9iN2k2?= =?utf-8?B?T3ExVmwzdEhTVm96M1pEVnFXdWlROTRQWkNCSTZUUGlLS0tndFFpZW9lMUJm?= =?utf-8?B?dHByeEdKaTh6Z0RSK0JvMFNHdkN5dVpOY21HaHh1Zm1pRnVLbkpWeDRWVHV1?= =?utf-8?B?dk1zajVKNW5acHVMNWQyNDNWMUo4WWdiL1FPUnpGak1rY2M5M3llNnBrbWdS?= =?utf-8?B?VlArWmVvRWVQRjhqczJEUnZOOW45S0tRWTRkamk1cStPOWdSSDVMUkZQdFVH?= =?utf-8?B?UGNnTU93cHF3VjhpZWtJeEs5MlZ2eHBreDFqU1dTWjR3U3lIRHI3b1hwZ2Fi?= =?utf-8?B?c2VoalY4dlRpUmptN3g0ak9KaW5QVkwzV2xNSXJVRG5rK0VtT2o4NGh2NlZZ?= =?utf-8?B?V21jS0MvVldxWUg1NVJPeGlpQ3dvUyt6bVZ6T0NISU1NbDFWNnE0V2xYMTNP?= =?utf-8?B?dGJTY0w3bE1qTC9objhHanpZUzVZVVk0MmhEYjZzV2ord0VuVy9rclV6L1o4?= =?utf-8?B?RDhVL2FPOWRrWHBOVCtCc2NUaXNVR0cxU0VvUWl3WjNpVHVxaGFCNUJsU2ww?= =?utf-8?Q?yXwnes?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-24fb5.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: a23b611c-9406-4412-bbe0-08da24b82779 X-MS-Exchange-CrossTenant-AuthSource: DM8PR01MB7016.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2022 23:30:58.4967 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR01MB5184 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --------------D00bkuIB03nOZCLrLtkyEmv2 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Thanks David > In any case the cost-based stuff throttles I/O only (per the docs at > least) but even while sleeping it still holds its lock.  And it won't > be kicked off of the lock by other processes.  I don't see where it is > documented that the autovacuum cost settings are altered during the > anti-wraparound vacuum so I presume it will still sleep by default. > I knew I was misunderstanding something. I had picked up the impression that the vacuum process cost_delay released the lock for the period. Not just do nothing. Seems like that would be worth mentioning in the Docs. I'm learning this from the inside out in the tradition of "well someone has to do it". I'm sure I'm not alone. -Senor --------------D00bkuIB03nOZCLrLtkyEmv2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks David
In any case the cost-based stuff throttles I/O only (per the docs at least) but even while sleeping it still holds its lock.  And it won't be kicked off of the lock by other processes.  I don't see where it is documented that the autovacuum cost settings are altered during the anti-wraparound vacuum so I presume it will still sleep by default.

I knew I was misunderstanding something. I had picked up the impression that the vacuum process cost_delay released the lock for the period. Not just do nothing. Seems like that would be worth mentioning in the Docs. I'm learning this from the inside out in the tradition of "well someone has to do it". I'm sure I'm not alone.


-Senor

--------------D00bkuIB03nOZCLrLtkyEmv2--