Set FILLFACTOR for primary key

From: Ed Behn <ed(at)behn(dot)us>
To: pgsql-sql(at)postgresql(dot)org
Subject: Set FILLFACTOR for primary key
Date: 2019-10-09 16:36:45
Message-ID: CAJBL5DPJXWjuB9hXuRY6zmv+O5kaXS-vPeeu+rg=hhFMtKwezg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I have a table where I INSERT rows and DELETE rows. However, they are
UPDATEd. Therefore, I've set FILLFACTOR to 100% for all of the indexes.
However, I can't figure out how to set the FILLFACTOR to 100 for the
primary key. I think it's just a matter of syntax that I can't seem to wrap
my head around.

My code looks like:

ALTER TABLE table ADD CONSTRAINT table_pkey PRIMARY KEY (col1, col2) USING
> INDEX TABLESPACE ts_indexes;

How should this be changed to set the FILLFACTOR or am I missing something
fundamental about primary keys?

-Ed

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Peter Geoghegan 2019-10-09 17:16:37 Re: Set FILLFACTOR for primary key
Previous Message Tom Lane 2019-10-09 05:01:01 Re: pg_dump compatibility level / use create view instead of create table/rule