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 1l7dF8-0000ff-TD for pgsql-general@arkaria.postgresql.org; Thu, 04 Feb 2021 11:56:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l7dF5-0007fS-B7 for pgsql-general@arkaria.postgresql.org; Thu, 04 Feb 2021 11:56:11 +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 1l7dF5-0007fL-40 for pgsql-general@lists.postgresql.org; Thu, 04 Feb 2021 11:56:11 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l7dF1-00068k-7h for pgsql-general@lists.postgresql.org; Thu, 04 Feb 2021 11:56:09 +0000 Received: by mail-ed1-x52a.google.com with SMTP id y18so3708087edw.13 for ; Thu, 04 Feb 2021 03:56:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=jzJ09kJC8fuUDjfBkVp/0lCpdEWoloy7X7iHvgR+lH8=; b=G+9QTmtKQD1YxvYIgKL7nOSfUo9aPYEpQlCI2iWfmk/2+07OPO1Dus/X97ZBzAiQnW 83sXZPNhvnOv/sDr7MDQ9r3ydG65RtgZzEYTST8u2mo5C8Q1wwFZjlxaAp4XrncNBY1p 1YxLr4sq/Kx4gEuavhgfFGyVmvdAz8NZkz1lmgAahw1i+rSV/cKvdssHZtFxYq13azbm +cNH26h9pm0BcMY0580ioWN6lXvVq67LBp+Bh1vawKyjSzTSuZXgXEdqCkKBX1oEhWHT RfPGCGVm5OlfUm31YvThSaQTY6JMsGsjdW394pBtHBbEtVne80AZXDpjD0luT/B9edXR 6fyA== 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:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=jzJ09kJC8fuUDjfBkVp/0lCpdEWoloy7X7iHvgR+lH8=; b=gnmi43CmHKIy2X1jLzQvbINnoubVDEb3yFrvoSCEhTJmBCDsy1ygES4JAnwQUCwJDK ygemViLbeJAETO/MqQpo4a5x8NiZsUOl5txrtYThydJtucf5adtez5DHSXwb7Z8Cdscf aiEwSJcWjCl+zlnbw7F63IirNLSEM5JNw+rNbvA+6BuEvLWDQLR0QErvamkCglALyeAp 4Qv3oXKaLsbLEZ99s8Awb2bbvwTf6zU+mixZ7C3w0ETwzLj8CjB+5LBBmkVpiYSrD3lN 9mJRIJqd3W+5GHI2yd//PNPdqVEYWW5qPeFJaO0S03cXavgDM2fp68kkusqtX9MWroxL VJqA== X-Gm-Message-State: AOAM533pIs+eYQXyKR2ZFjb82QPAJmFN8MejAeiaRgFjMsePEEvE4KTd aHn1TOLpsNwh0hXdakcTWd7tUg== X-Google-Smtp-Source: ABdhPJx3OYwA2FYMzgJFWlNRjJ1K7r+/hPIX5SpePWz3ruOJPoaGEcQtWz0CDHXtFG4DoaSA773bCg== X-Received: by 2002:aa7:cfda:: with SMTP id r26mr7420805edy.142.1612439766139; Thu, 04 Feb 2021 03:56:06 -0800 (PST) Received: from localhost.localdomain (217-149-171-72.nat.highway.telekom.at. [217.149.171.72]) by smtp.gmail.com with ESMTPSA id dm6sm2285676ejc.32.2021.02.04.03.56.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 03:56:05 -0800 (PST) Message-ID: Subject: Re: when is useful min_wal_size? From: Laurenz Albe To: Luca Ferrari , pgsql-general Date: Thu, 04 Feb 2021 12:56:04 +0100 In-Reply-To: References: 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: Precedence: bulk On Thu, 2021-02-04 at 12:41 +0100, Luca Ferrari wrote: > this may sound trivial, but in my opinion min_wal_size is useful only > when the cluster is initialized or the wals are reset. > Am I wrong? The amount of WAL that PostgreSQL pre-creates for future use depends on the database activity but has a lower limit of "min_wal_size". If your workload is subject to long lulls followed by activity spikes, raising "min_wal_size" can improve the performance at the beginning of an activity spike. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com