Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uNyVL-00D2uT-HR for pgsql-general@arkaria.postgresql.org; Sat, 07 Jun 2025 18:42:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uNyVH-00EVWy-Mv for pgsql-general@arkaria.postgresql.org; Sat, 07 Jun 2025 18:42:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uNyVH-00EVWp-AB for pgsql-general@lists.postgresql.org; Sat, 07 Jun 2025 18:42:51 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uNyVG-000mz7-0d for pgsql-general@lists.postgresql.org; Sat, 07 Jun 2025 18:42:50 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-2da73155e91so1289297fac.0 for ; Sat, 07 Jun 2025 11:42:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749321769; x=1749926569; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=aw4t7OmdN2oi/TsOfyDtwb9IdfXktcS7Wv6zUjR106c=; b=N1DkvgEpTQW6FU5AW3179W8BJpYDobJAxDH6YNuUmo77zxd5WLwWAwHUIUxKbhY74+ +xnSv4VnV0NYWx5LiCVTKFFImhGrO5E9eZ84YXFZgE8CXGtxoWQOKSvUOMxGcVVVdwUg d8Vszu4N2865QvjHimhYYOOP9wnQIfR3lzfm4lsJxbe7DRRAQniPUp0hH8/xDoW4WULi hR2ZlgPmOE1OLDeoKoMpK+0Pt4YFuEEsTspkIOHVulT+Ygbb46a3LgVkubAd32y3qoSV 8DvwZOx0Q6zGVVRi+QJCU1RQPEfvO1yovu+hGZ4DrA0s6RtJ1VXQi2eDI+A8hyGWw4rS WrDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749321769; x=1749926569; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aw4t7OmdN2oi/TsOfyDtwb9IdfXktcS7Wv6zUjR106c=; b=YOyyGUCx3voRvgGoTLM4FBryTDcLprGNpA4f5BBo9av36Da0RT2RXFyjJGK7U8ik3Y tJh6F64/dWyWbjIEoSpTpdIQK6p8KIl4U7+tD9bvtB7kCwUkAL0RxO89VYmbo7RrNf0m zEKRXOVeLjc+ahqPO1dBLWPjbXgEFM3u0nE0Dj34EjsE1Zt8oJaUUM+kYrWo3u15LQ76 zRuy8os7YtmXuZXxsRy98WEyarYKivxr8yoxx3oQJnwn9DdabQIMxgELzD6vRf//gkoi 6BgYPZf9kWzqiowWEH4j5iH4BzBX2lCAJdGXEmGY3qoTuV0yz72GUsYkU/Jfqlp/dlxh df1w== X-Forwarded-Encrypted: i=1; AJvYcCXX1oqQI7HeEG0I0EnS+aUzQnA8acJl5+falH1YyVyfl2XKCG0fQJNf4ONs/uuZs/DsO+HZxvMzEYdcxv8T@lists.postgresql.org X-Gm-Message-State: AOJu0YwOwf/rF7e3ELGWjk40VzEIL1aPAYSdwYeDjqCmjALklrQWRuP6 Stsng/wcBg9XymlC/TyGXA1k54nsyG/l9woWn5Udae9B7AAlJIDTCjFzAeRxJ4XmyA2Mflm8Ff/ gl/lvkW7/3zqueRN1lY67DKFvcd5krWM= X-Gm-Gg: ASbGnctsSteG6YuOOf/dKz9ecZELrMzUWzHTXhjuSfpJaj8eOjKDf5ds7+yzRFmwhPH UJYbTRtyb4O8vmKvXagRtBzQRRbCgKsaMng6/tntpT9KJuAMXlGVeNkd/Zq9OXYyUrcVzevvU6n P2BNR+/HaZHyiYm81zNrLOUGE+4GjEPWZ+bJrX14C0pqBE X-Google-Smtp-Source: AGHT+IE1urOsCRIketakyyJElHPmpQYH27SHwdaPjh8gxkFd4v7QnPDVLh6WPaBFA8wj18rC3lpvSOe24eLqdW+CtFc= X-Received: by 2002:a05:6870:5147:b0:2c1:650b:fc86 with SMTP id 586e51a60fabf-2ea006280c8mr4759146fac.1.1749321769247; Sat, 07 Jun 2025 11:42:49 -0700 (PDT) MIME-Version: 1.0 References: <65a54f809d0339d9d6021c35f7fa14fc20a7f2e6.camel@cybertec.at> <84b6da7feb3de406d20a4a0e80954520a6db6b6c.camel@cybertec.at> In-Reply-To: <84b6da7feb3de406d20a4a0e80954520a6db6b6c.camel@cybertec.at> From: Ron Johnson Date: Sat, 7 Jun 2025 14:42:38 -0400 X-Gm-Features: AX0GCFsxA6dITmC1P7tWLAfy_UYtFyw2cEZZaUOF3YyioNMTBqDTfMFswSdeDPc Message-ID: Subject: Re: Regarding fillfactor use case for only delete ops To: Laurenz Albe Cc: Durgamahesh Manne , pgsql-general Content-Type: multipart/alternative; boundary="000000000000a767040636ffb63c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a767040636ffb63c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Jun 7, 2025 at 7:53=E2=80=AFAM Laurenz Albe wrote: > On Fri, 2025-06-06 at 09:59 -0400, Ron Johnson wrote: > > On Fri, Jun 6, 2025 at 8:57=E2=80=AFAM Laurenz Albe > wrote: > > > On Fri, 2025-06-06 at 14:10 +0530, Durgamahesh Manne wrote: > > > > Can we generate a fill factor for tables that have delete ops ? > > > > > > > > Does the fill factor really work and help to minimize the bloat for > tables that have delete ops? > > > > > > > > I have parent table with weekly partitions So for every week 50 to > 60 gb of bloat generates and autovacuum params already in place for child > tables > > > > > > Nothing can ever avoid bloat caused by DELETE, except partitioning in= a > > > way that you can drop a partition rather than running DELETE. > > > > Isn't the fill factor aimed at reducing bloat during updates of HOT > tables? > > Yes, but not during DELETEs. > I still don't understand why OP is deleting from a date-partitioned table, instead of dropping the oldest partitions. > HOT updates also don't directly avoid bloat on tables; only on indexes. > They reduce the bloat on tables inderectly, because the dead tuples can > be cleaned up with less effort. > Thanks for the clarification. --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --000000000000a767040636ffb63c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Jun 7, 2025 at 7:53=E2=80=AFAM La= urenz Albe <laurenz.albe@cyb= ertec.at> wrote:

--
Death to <Redacted>, and butter sauce.
Don't boil= me, I'm still alive.
<Redacted> lobster!
--000000000000a767040636ffb63c--