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 1kv4UT-0007Yf-Lp for pgsql-general@arkaria.postgresql.org; Thu, 31 Dec 2020 20:24:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kv4US-0001lC-EC for pgsql-general@arkaria.postgresql.org; Thu, 31 Dec 2020 20:24:08 +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 1kv4US-0001l4-4M for pgsql-general@lists.postgresql.org; Thu, 31 Dec 2020 20:24:08 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kv4UP-0007I1-5p for pgsql-general@lists.postgresql.org; Thu, 31 Dec 2020 20:24:07 +0000 Received: by mail-ot1-x32b.google.com with SMTP id j12so18785656ota.7 for ; Thu, 31 Dec 2020 12:24:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=NxAqkC22xdNu5wuuxpKkw8FqJuPp0BFDASbitOiUoTE=; b=DphtfKvrWTPisW0ucT+jxjQh1hDDwgwNrawR94bSzUtdA8DCMayNE7fp1JY5GqdSHk tFFN+OrXvbY1dt5VdoyQJwGId/6tP1/HwsahTgJ3mDXDJ8BUJRhhwz0Wvz/379laPrww 6UQAKMtNFlQOaAhgyzyiPY5h/Sly8UnBkmNdD99PDxBj++A3tV5w4u9BQY8bLLYMm4ET 36y9m8of1Ne2rNe8EiJPgMLI5GAVRtUXcaqEvlaqYNH1ATgm2Dcn9APfQ4cUNLM3Splu QG6+UY3W6c4n9TrrIJDjeFQQBXUQpo5fdl9mbVnmCusO0oWHn+qfvKA4ygtX/ejHrE0t lGcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=NxAqkC22xdNu5wuuxpKkw8FqJuPp0BFDASbitOiUoTE=; b=f2NVdU4iMbMtRw3wqL8zJBFj8Ve7qLviz5oRK6VFpvCob8tUR4QNBxJ+QeeljR6Cok XV6HVRH1JOv9qOg/31J91Ae/YJbbSi417LnPfZdbr0kLf05jgtWqIY8zaTGhJazgPfMw WQ6Nf9OlsB8qIRo+ar25DuyhMpmiaASovxyg1+NCBo9BscerpcLLIiJO9FTypm4BPG/g gZhRp7Lz7VgxUvS2uJE07DE2eJ5Z6zeD+2g1ZVpHOTCY9UI95xNvfzDMia5VfF/AXp5y WXAWysQFqTYEULA4CTKexxD94tbUe96tpEwEd+IiHDgSSoT+uS+qGRp8scquadgtO0Rd o7Ag== X-Gm-Message-State: AOAM530NvNDG8yCmwDy2d2WLxD9Hqn5jklmxyj8LCNCRyU62noGNl5Pe FTVAq/mxGM2lpjeweKmvUsLdIWojXQW7rQ== X-Google-Smtp-Source: ABdhPJxskBkxWdiDszXFzcaN+T3DGzyjbfCTtAsxhnq++hG52Gr3GQTrsgCHMmgqDBQMOe6ZrYoRjg== X-Received: by 2002:a05:6830:1308:: with SMTP id p8mr41644234otq.330.1609446242163; Thu, 31 Dec 2020 12:24:02 -0800 (PST) Received: from [192.168.1.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id v17sm11048361oou.41.2020.12.31.12.24.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 31 Dec 2020 12:24:01 -0800 (PST) Subject: Re: How to REMOVE a fillfactor set by accident? To: pgsql-general@lists.postgresql.org References: <1908635665.20201231211328@am-soft.de> From: Ron Message-ID: <426b90ed-d8f7-5a5c-36fb-78c392e8c0d8@gmail.com> Date: Thu, 31 Dec 2020 14:24:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1908635665.20201231211328@am-soft.de> Content-Type: multipart/alternative; boundary="------------02C7E86143B06007BAF4DD5D" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------02C7E86143B06007BAF4DD5D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. --------------02C7E86143B06007BAF4DD5D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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.
--------------02C7E86143B06007BAF4DD5D--