From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | Lee Wu <Lwu(at)mxlogic(dot)com> |
Cc: | Gaetano Mendola <mendola(at)bigfoot(dot)com>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Vacuum full on a big table |
Date: | 2005-03-17 22:00:12 |
Message-ID: | Pine.GSO.4.62.0503180055480.5508@ra.sai.msu.su |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Thu, 17 Mar 2005, Lee Wu wrote:
> I wish.
>
> I am having a table, size of more than 60G, with 2.04412e+08 rows.
> Vacuum full and reindex it just kill me.
In my case ( I have more than 500,000,000 rows) I had to
'select * into new_big_table from big_table'
it was faster and didn't kill server.
As a bonus, you could 'CLUSTER' your big table if add
'order by somekey';
After that, dont' forget to recreate indices and then you could
drop big_table and 'alter table new_big_table rename to big_table'.
Oleg
>
> -----Original Message-----
> From: pgsql-admin-owner(at)postgresql(dot)org
> [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Gaetano Mendola
> Sent: Thursday, March 17, 2005 2:10 PM
> To: pgsql-admin(at)postgresql(dot)org
> Subject: [ADMIN] Vacuum full on a big table
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
> is there a way to vacuum full a table but working only
> a part of the table ? I have a table with 6 milion rows
> and vacuum full it will send out of line for hours my
> server, so I'll like to vacuum that table multiple times
> in order to not block that table for a long period.
>
> It will work decresing the FSM settings ?
>
>
> Regards
> Gaetano Mendola
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.5 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFCOfIs7UpzwH2SGd4RAsXaAKDIgcNZLqsYULjnNVNhTktXvWmJTgCg4zcK
> V/gFNRTCu0y99HLbTtGm610=
> =0SF3
> -----END PGP SIGNATURE-----
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Travis | 2005-03-17 22:16:34 | Re: Cannot get postgres started on Fedora core 3 |
Previous Message | Gaetano Mendola | 2005-03-17 21:53:17 | Re: Vacuum full on a big table |