pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to REMOVE a fillfactor set by accident?
Date: Thu, 31 Dec 2020 14:24:00 -0600
Message-ID: <426b90ed-d8f7-5a5c-36fb-78c392e8c0d8@gmail.com> (raw)
In-Reply-To: <1908635665.20201231211328@am-soft.de>
References: <1908635665.20201231211328@am-soft.de>

On 12/31/20 2:13 PM, Thorsten Schöning wrote:
> Hi all,
>
> I'm using the GUI tool pgModeler to maintain schemas and at some point
> in the past it used fillfactor 10 for some indexes by default. That
> seems to have changed in the meantime and most of my indexes don't
> have ANY fillfactor set explicitly.
>
> Is there some way to REMOVE the fillfactor where it is set, so that
> Postgres applies it's defaults? Would be great to have an output of
> NULL everywhere where fillfactor is output instead of sometimes e.g.
> 100 and more often NULL.
>
> I've already tried setting things to NULL, which failed with
> mentioning that a decimal number is necessary. Though, even setting 0
> fails, because a value between 10 and 100 is required.
>
>> ALTER INDEX  pk_clt_rec_src SET (fillfactor = NULL);
>> ALTER INDEX  pk_clt_rec_src SET (fillfactor = 0);
> So removing isn't possible at all and I can only set to concrete
> values like 100 or don't care at all instead? Because fillfactor=10 is
> only set for some low throughput test databases currently.

https://www.postgresql.org/docs/12/sql-createindex.html

There *must* be a fill factor; that's how B-tree, hash, GiST and SP-GiST 
indices work.

The default fill factor is 90%; thus, to "remove" your custom fill factor, 
set it to 90%.

-- 
Angular momentum makes the world go 'round.

view thread (5+ messages)  latest in thread

Message-ID: <426b90ed-d8f7-5a5c-36fb-78c392e8c0d8@gmail.com>
Permalink:  ../426b90ed-d8f7-5a5c-36fb-78c392e8c0d8@gmail.com/
Also on:    postgresql.org/message-id/426b90ed-d8f7-5a5c-36fb-78c392e8c0d8@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: How to REMOVE a fillfactor set by accident?
  In-Reply-To: <426b90ed-d8f7-5a5c-36fb-78c392e8c0d8@gmail.com>
  References: <1908635665.20201231211328@am-soft.de> <426b90ed-d8f7-5a5c-36fb-78c392e8c0d8@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox