Re: problems with large table - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: problems with large table
Date
Msg-id 46E813B9.3030802@commandprompt.com
Whole thread Raw
In response to problems with large table  (Mike Charnoky <noky@nextbus.com>)
Responses Re: problems with large table  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: problems with large table  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: problems with large table  (Mike Charnoky <noky@nextbus.com>)
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike Charnoky wrote:
> Hi,

> At this point, I'm at a loss.  I've searched the archives for similar
> problems, but none of the suggestions have worked.  Is the data in this
> table corrupted?  Why are both vacuum and reindex failing to complete?
> Is there some sort of fine-tuning I should pay attention to?  Any help
> is much appreciated.

At this point, you are in a world of hurt :). If you stop a vacuum you
have created a huge mess of dead rows in that table. My suggestion is
this to create a new table that is populated from the old table, rename
the old table to big_table new, rename new table to old table. Run analyze.

Try again. :)

Sincerely,

Joshua D. Drake



>
>
> Mike
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>


- --

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564   24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997  http://www.commandprompt.com/
            UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG6BO5ATb/zqfZUUQRAspCAJ4l6oC2C+JM2IRyvRIn8m5Gs+0ofQCcCFx4
HOjgCaz1wE405GtmTzf/dyw=
=x/TT
-----END PGP SIGNATURE-----

pgsql-general by date:

Previous
From: Mike Charnoky
Date:
Subject: problems with large table
Next
From: "Jay Dickon Glanville"
Date:
Subject: Event-driven programming?