Re: When to do a vacuum for highly active table - Mailing list pgsql-performance

From Tom Lane
Subject Re: When to do a vacuum for highly active table
Date
Msg-id 25546.1125443104@sss.pgh.pa.us
Whole thread Raw
In response to Re: When to do a vacuum for highly active table  (mark@mark.mielke.cc)
List pgsql-performance
mark@mark.mielke.cc writes:
> I think he means splitting it vertically, instead of horizontally, and
> it sounds like an excellent idea, if a large enough portion of each
> record is in fact mostly fixed. Otherwise, PostgreSQL is copying data
> multiple times, only to have the data expire as part of a dead row.

Only up to a point.  Fields that are wide enough to get toasted
out-of-line (multiple Kb) do not get physically copied if there's
a row update that doesn't affect them.  We don't really have enough
information about his table to guess whether there's any point in
manually partitioning the columns, but my leaning would be "probably
not" --- the overhead in joining the resulting two tables would be
high enough that you'd need a heck of a big improvement to justify it.

            regards, tom lane

pgsql-performance by date:

Previous
From: Chris Browne
Date:
Subject: Re: When to do a vacuum for highly active table
Next
From: Ralph Mason
Date:
Subject: Re: 'Real' auto vacuum?