Re: Default fill factor for tables?

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Richard Broersma" <richard(dot)broersma(at)gmail(dot)com>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, lists(at)stringsutils(dot)com, "Pgsql General list" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Default fill factor for tables?
Date: 2008-07-11 18:52:56
Message-ID: dcc563d10807111152u374e03cfu9ad1bd817fb0107f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Jul 11, 2008 at 12:12 PM, Richard Broersma
<richard(dot)broersma(at)gmail(dot)com> wrote:
> On Fri, Jul 11, 2008 at 10:27 AM, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> wrote:
>
>> Is there any way to set a different default fill factor?
>
> ALTER TABLE Yourtable
> SET ( FILLFACTOR = 50 );

Hehe. I know how to do that. I mean the default fill factor for a
database / user for tables / indexes.. Like setting search_path for a
user.

alter database mydb set indexfillfactor=50;
alter user me set tablefillfactor=75;

so that newly created indexes in the db mydb have fillfactor of 50 and
tables created by me are at 75.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hoover, Jeffrey 2008-07-11 18:53:01 Recall: Complicated GROUP BY
Previous Message Hoover, Jeffrey 2008-07-11 18:50:57 Re: Complicated GROUP BY