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 1lzITb-0004Ll-UL for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Jul 2021 12:41:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lzITa-0005lz-KY for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Jul 2021 12:40:58 +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 1lzITa-0005lr-9z for pgsql-hackers@lists.postgresql.org; Fri, 02 Jul 2021 12:40:58 +0000 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lzITX-0006wj-Do for pgsql-hackers@lists.postgresql.org; Fri, 02 Jul 2021 12:40:57 +0000 Received: by mail-wr1-x432.google.com with SMTP id a13so12269377wrf.10 for ; Fri, 02 Jul 2021 05:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=dNJTe50rocmz0aYCrs8LOCivcB4nwdrIDKUCqK6uINk=; b=bq+Vss6t85TLuWS/wDOLD1YYtyCzTFbScy+KCJ8RewgvydlXGOnxLPsPKmTRNJWbXU mxm6wLNcj1KB1CXPJC8dC5Ri01NQCQzCLejLwr0ZDLDAAmUvpHws/QOj6Bc+chvTlrN5 uy0XvjHlhjMbjqEfuJpfMIJjro3too2dX9QtQhhdGlXeWwG+/w/r2ryw+WrrZX1ued2Q cQtw+xR5avR3eBUtIqLsdDu+yHNojW6KJmaMnFsw2Ox3GqWOKkV8OYXc6m5AkLbMSgL0 n4MPB3FW6KwX7mVbFjybGzcXjpn0Ra5Rb8RLquYPV0VKvVze/nkc3bApUksRLMOcCOdu 3z4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=dNJTe50rocmz0aYCrs8LOCivcB4nwdrIDKUCqK6uINk=; b=nQuMU31CLOrOqkCgoVF5HKD38si0/bG9V+s2cgo9jdRyikqosVHaxHyKYj3mlmVR5l bKpv0Gi64iiOvIK/plgswDVZpyy3M34TRh/h3Zm1KKggB7SldcUdJLTX2KSB1Adn7THG CluijwK9eUIBCJ9Tw36LO4iOzkI74MYGoQRsawT2DUf0r1tKZEiLJ+jfmYR3qCqRMs/1 SmWiIvDyQBoxB+3PpbdofYMB5h4qMN0qOpZRECz4awi5FPH6t2RXVS8nVCJqopMjUcPf NYv+vH0waToF4tcBfOV8ji9O12fLY/OzRVZEQoXwECjBUDOjjdjQuY+hRxZZp+m07a1L t7jg== X-Gm-Message-State: AOAM530VHLE7wpGacvrIbhIE1D8m3sQMwY4dFw2wGeLjVddTSKMp4LfG K7TCqjmPmoTv3ytUM1Od+WOstg== X-Google-Smtp-Source: ABdhPJwi/a0YmbBP12kbb6kdaMukGXkFdv23keMukA7RA2uS28lK7OgZ9e+okl1Zf0EcQUpvDxN+pA== X-Received: by 2002:adf:e983:: with SMTP id h3mr5613663wrm.366.1625229653497; Fri, 02 Jul 2021 05:40:53 -0700 (PDT) Received: from localhost.localdomain (217-149-175-223.nat.highway.telekom.at. [217.149.175.223]) by smtp.gmail.com with ESMTPSA id f13sm3224973wrt.86.2021.07.02.05.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 05:40:53 -0700 (PDT) Message-ID: Subject: Re: Update maintenance_work_mem/autovacuum_work_mem to reflect the 1GB limitation with VACUUM From: Laurenz Albe To: David Rowley Cc: =?ISO-8859-1?Q?Mart=EDn_Marqu=E9s?= , PostgreSQL Developers Date: Fri, 02 Jul 2021 14:40:52 +0200 In-Reply-To: References: <1c6fa18692a77ff6098dedc0c150df24ffe9db89.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2021-07-02 at 23:31 +1200, David Rowley wrote: > I had a look at the patch in [1] and I find it a bit weird that we'd > write the following about autovacuum_work_mem in our docs: > > + > + Note that VACUUM has a hard-coded limit of 1GB > + for the amount of memory used, so setting > + autovacuum_work_mem higher than that has no effect. > + > > Since that setting is *only* used for auto vacuum, why don't we just > limit the range of the GUC to 1GB? > > Of course, it wouldn't be wise to backpatch the reduced limit of > autovacuum_work_mem as it might upset people who have higher values in > their postgresql.conf when their database fails to restart after an > upgrade. I think what might be best is just to reduce the limit in > master and apply the doc patch for just maintenance_work_mem in all > supported versions. We could just ignore doing anything with > autovacuum_work_mem in the back branches and put it down to a > historical mistake that can't easily be fixed now. > > I've attached what I came up with. > > What do you think? > > [1] https://www.postgresql.org/message-id/514fe5ce4714b7b33cb0a611f0c7b72df413bef5.camel%40cybertec.at I think that is much better. I am fine with that patch. Yours, Laurenz Albe