Re: Regarding fillfactor use case for only delete ops

2025-06-06 Thread Adrian Klaver
On 6/6/25 16:09, Durgamahesh Manne wrote: Hi I have partitioned table with retention policy of 90 days and will be auto purged partitions beyond 90 days and  for last 90 days tables inserts and deletes usually run through apl call Here due to deletes ops on last 90 days weekly partitions b

Re: Regarding fillfactor use case for only delete ops

2025-06-06 Thread Adrian Klaver
On 6/6/25 16:04, Durgamahesh Manne wrote: Hi I believe that fill factor works exclusively for updates of HOT tables but not for delete ops From here: https://www.postgresql.org/docs/current/sql-createtable.html "fillfactor (integer) The fillfactor for a table is a percentage betw

Re: Regarding fillfactor use case for only delete ops

2025-06-06 Thread Durgamahesh Manne
On Fri, Jun 6, 2025 at 7:31 PM Ron Johnson wrote: > On Fri, Jun 6, 2025 at 4:36 AM Durgamahesh Manne < > maheshpostgr...@gmail.com> wrote: > >> Hi Team >> >> 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

Re: Regarding fillfactor use case for only delete ops

2025-06-06 Thread Durgamahesh Manne
On Fri, Jun 6, 2025 at 7:29 PM Ron Johnson wrote: > On Fri, Jun 6, 2025 at 8:57 AM 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 mi

Re: Low OIDs (< 16384) when creating databases in single user mode

2025-06-06 Thread Tom Lane
Arnold Hendriks writes: > Is there a way to ensure new IDs are in the usual range when starting > in in single user mode? No. Start the DB in normal mode, then create objects that you want to be considered user-defined. regards, tom lane

Re: Regarding fillfactor use case for only delete ops

2025-06-06 Thread Ron Johnson
On Fri, Jun 6, 2025 at 4:36 AM Durgamahesh Manne wrote: > Hi Team > > 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

Re: Regarding fillfactor use case for only delete ops

2025-06-06 Thread Ron Johnson
On Fri, Jun 6, 2025 at 8:57 AM 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

Re: Regarding fillfactor use case for only delete ops

2025-06-06 Thread Laurenz Albe
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

Low OIDs (< 16384) when creating databases in single user mode

2025-06-06 Thread Arnold Hendriks
When creating a new database using the following script: PGBINDIR="/opt/homebrew/Cellar/postgresql@16/16.9/bin/" rm -rf /tmp/db "$PGBINDIR/initdb" -U postgres -D /tmp/db --auth-local=trust --encoding 'UTF-8' --locale='C' "$PGBINDIR/postgres" --single -D /tmp/db postgres <= 16384 (unless named post

Regarding fillfactor use case for only delete ops

2025-06-06 Thread Durgamahesh Manne
Hi Team 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 p