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 1phNK1-0001KN-4i for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Mar 2023 04:22:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1phNK0-0000nv-1P for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Mar 2023 04:22:04 +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 1phNJz-0000nl-OY for pgsql-hackers@lists.postgresql.org; Wed, 29 Mar 2023 04:22:03 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1phNJv-00022N-Ka for pgsql-hackers@postgresql.org; Wed, 29 Mar 2023 04:22:02 +0000 Received: by mail-pj1-x102e.google.com with SMTP id qe8-20020a17090b4f8800b0023f07253a2cso14871394pjb.3 for ; Tue, 28 Mar 2023 21:21:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680063718; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=kHqLveKKGTg5YAwI8t2MTUvZ42hL8IzLvq1S+XKxNKo=; b=Y0JvEe3yqyfHbfkA93IuX+lB/czHy1sZhDJmdGefElTW8AHpJVlB5E/uRYpYabvL4J /fBarIj+wIz3SYAM4lxdCNl20fe7vn6YGm8OzeXbfPU4iBR72y/SD97iyDdmy+f0U+H8 M0TTZfLwrm5+RBnEqpSpnZLp+iApu9ap2PyhAUueUGHIMfHHclYzIgpTU4x9xUxK6LsG gl1IhnLTeuzDf4kRcCv4RKOlXXqPedC4qZ4fi8FnHR1/3iiCr6plfpjgrbAMBnVuHkPZ mc7h4ijCZf5V+Ijp/fs7OVUjPuDnyvgimnlDJu/SxSSrzQAO79GViRkAgU/IbIdjmzg8 D9og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680063718; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=kHqLveKKGTg5YAwI8t2MTUvZ42hL8IzLvq1S+XKxNKo=; b=XL6FuENNsP9fBMUqmvIXP1zHkhdfH6ciqaSEOTXrd02eNLAKB0XlVIJkOFXMLOZ/sy ZHJgueE+zlmuT7JS6rdpRhy9msYLvxsjMKQFdMZLwzcaFUgiCvLzbY5Orr6Vm7CpKUvc FeT13hFMXm6gDQ3CJtfjhxN7f5oEGnIsiUQ9kAgi8NO/bIJgFWHnAMq2Vrja4vHI7f8w mpXEEN2RpfQyuyWDchtT6D4QvTXpb4GYRMpxBUg6g0jU/bebbpxfa8wWbOW2fo8OaOvm 7IHRxHc181Qwh91ysj3HLL/VaroV3UmEvhL8+aN4DXC8VDGoKZ53K1Ki2iVMb3y25UXh KA2A== X-Gm-Message-State: AO0yUKWZGeP8047iQnim4eG8HxCsI6wgpsQCdU5y/MoRUzAwHedN1J0q 9cpPP0ZT2juE5lbxfejOSxQ= X-Google-Smtp-Source: AK7set9sqvwWYpUrJWTOw30ercO4+YPqujKjpzzXk/euHxpysGovokRUQfizTTbkkrnlQXL3xbM+CQ== X-Received: by 2002:a05:6a20:3b04:b0:da:e7a5:3bee with SMTP id c4-20020a056a203b0400b000dae7a53beemr15573177pzh.39.1680063718547; Tue, 28 Mar 2023 21:21:58 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id a25-20020a62e219000000b00590ede84b1csm22574127pfi.147.2023.03.28.21.21.56 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 28 Mar 2023 21:21:58 -0700 (PDT) Date: Wed, 29 Mar 2023 13:21:55 +0900 (JST) Message-Id: <20230329.132155.629765142788133576.horikyota.ntt@gmail.com> To: melanieplageman@gmail.com Cc: sawada.mshk@gmail.com, daniel@yesql.se, pgsql-hackers@postgresql.org, andres@anarazel.de, amit.kapila16@gmail.com Subject: Re: Should vacuum process config file reload more often From: Kyotaro Horiguchi In-Reply-To: <20230329.120908.350115307125624430.horikyota.ntt@gmail.com> References: <20230328.172147.1984729741959637354.horikyota.ntt@gmail.com> <20230329.120908.350115307125624430.horikyota.ntt@gmail.com> User-Agent: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Wed, 29 Mar 2023 12:09:08 +0900 (JST), Kyotaro Horiguchi wrote in > timeing perfectly. I think we might accidentally add a reload > timing. In that case, the assumption could break. In most cases, I > think we use snapshotting in various ways to avoid unintended variable > changes. (And I beilieve the analyze code also does that.) Okay, I was missing the following code. autovacuum.c:2893 /* * If any of the cost delay parameters has been set individually for * this table, disable the balancing algorithm. */ tab->at_dobalance = !(avopts && (avopts->vacuum_cost_limit > 0 || avopts->vacuum_cost_delay > 0)); So, sorry for the noise. I'll review it while this into cnosideration. regards. -- Kyotaro Horiguchi NTT Open Source Software Center