[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: Re: How to REMOVE a fillfactor set by accident?
From: "David G. Johnston" <david.g.johnston () gmail ! com>
Date: 2020-12-31 20:33:17
Message-ID: CAKFQuwaPQu-ssBd9OU_vZXDqFsMAc=T1G1DuVjnEFmp9kLrCqQ () mail ! gmail ! com
[Download RAW message or body]
On Thu, Dec 31, 2020 at 1:24 PM Ron <ronljohnsonjr@gmail.com> wrote:
> 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%.
>
>
Since the index already exists the "ALTER INDEX" documentation is more
pertinent. And behold:
ALTER INDEX [ IF EXISTS ] name RESET ( storage_parameter [, ... ] )
David J.
[Attachment #3 (text/html)]
<div dir="ltr"><div dir="ltr"><div class="gmail_default" \
style="font-family:arial,helvetica,sans-serif"><span \
style="font-family:Arial,Helvetica,sans-serif">On Thu, Dec 31, 2020 at 1:24 PM Ron \
<<a href="mailto:ronljohnsonjr@gmail.com">ronljohnsonjr@gmail.com</a>> \
wrote:</span></div></div><div class="gmail_quote"><blockquote class="gmail_quote" \
style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"><div><blockquote type="cite"><pre>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.
</pre>
<blockquote type="cite">
<pre>ALTER INDEX pk_clt_rec_src SET (fillfactor = NULL);
ALTER INDEX pk_clt_rec_src SET (fillfactor = 0);
</pre>
</blockquote>
<pre>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.</pre>
</blockquote>
<br>
<a href="https://www.postgresql.org/docs/12/sql-createindex.html" \
target="_blank">https://www.postgresql.org/docs/12/sql-createindex.html</a><br> <br>
There <b>must</b> be a fill factor; that's how B-tree, hash, GiST
and SP-GiST indices work.<br>
<br>
The default fill factor is 90%; thus, to "remove" your custom fill
factor, set it to 90%.<br><br></div></blockquote><div><br></div><div \
class="gmail_default" style="font-family:arial,helvetica,sans-serif">Since the index \
already exists the "ALTER INDEX" documentation is more pertinent. And \
behold:</div><div class="gmail_default" \
style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" \
style="font-family:arial,helvetica,sans-serif">ALTER INDEX [ IF EXISTS ] name RESET ( \
storage_parameter [, ... ] )</div><div class="gmail_default" \
style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" \
style="font-family:arial,helvetica,sans-serif">David J.</div><div \
class="gmail_default" \
style="font-family:arial,helvetica,sans-serif"><br></div></div></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic