pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to specify fillrate after pg_restore?
3+ messages / 3 participants
[nested] [flat]

* How to specify fillrate after pg_restore?
@ 2008-09-30 15:43 Laszlo Nagy <gandalf@shopzeus.com>
  2008-10-01 03:36 ` Re: How to specify fillrate after pg_restore? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Laszlo Nagy @ 2008-09-30 15:43 UTC (permalink / raw)
  To: pgsql-admin

Hello,

I've been reading previous posts and I think I have some tables in my 
database that would better be stored with fillfactor=90 or less. We are 
going to upgrade and reinstall our server soon. I thought this would be 
a good time to change fillfactor. Just I don't know how. First I need to 
dump the old database with pg_dump. Then I need to restore it on the new 
server with pg_restore.

What will this do?

ALTER TABLE tbl SET FILLFACTOR = 90;

Will it restucture the table, or is it just a setting and I should 
perform a VACUUM to actually reach fillfactor=90?

Thanks,
 
  Laszlo




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to specify fillrate after pg_restore?
  2008-09-30 15:43 How to specify fillrate after pg_restore? Laszlo Nagy <gandalf@shopzeus.com>
@ 2008-10-01 03:36 ` Tom Lane <tgl@sss.pgh.pa.us>
  2008-12-18 10:04   ` Re: How to specify fillrate after pg_restore? Michael Monnerie <michael.monnerie@is.it-management.at>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2008-10-01 03:36 UTC (permalink / raw)
  To: Laszlo Nagy <gandalf@shopzeus.com>; +Cc: pgsql-admin

Laszlo Nagy <gandalf@shopzeus.com> writes:
> What will this do?

> ALTER TABLE tbl SET FILLFACTOR = 90;

> Will it restucture the table, or is it just a setting and I should 
> perform a VACUUM to actually reach fillfactor=90?

It's just a setting ... and VACUUM won't do much with it either.

The best bet at the moment is to manually edit the pg_dump script
to insert such a command between creating the table and loading it.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: How to specify fillrate after pg_restore?
  2008-09-30 15:43 How to specify fillrate after pg_restore? Laszlo Nagy <gandalf@shopzeus.com>
  2008-10-01 03:36 ` Re: How to specify fillrate after pg_restore? Tom Lane <tgl@sss.pgh.pa.us>
@ 2008-12-18 10:04   ` Michael Monnerie <michael.monnerie@is.it-management.at>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Monnerie @ 2008-12-18 10:04 UTC (permalink / raw)
  To: pgsql-admin

On Mittwoch 01 Oktober 2008 Tom Lane wrote:
> The best bet at the moment is to manually edit the pg_dump script
> to insert such a command between creating the table and loading it.

Wouldn't CLUSTER care about it, as it copies the whole table anyway?

mfg zmi
-- 
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0660 / 415 65 31                      .network.your.ideas.
// PGP Key:         "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38  500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net                  Key-ID: 1C1209B4

Attachments:

  signature.asc (application/pgp-signature, 196B) download

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2008-12-18 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-09-30 15:43 How to specify fillrate after pg_restore? Laszlo Nagy <gandalf@shopzeus.com>
2008-10-01 03:36 ` Tom Lane <tgl@sss.pgh.pa.us>
2008-12-18 10:04   ` Michael Monnerie <michael.monnerie@is.it-management.at>

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