Re: questions on toast tables

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: questions on toast tables
Дата
Msg-id 25284.1146336505@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: questions on toast tables  (Warren Little <warren.little@meridiascapital.com>)
Ответы Re: questions on toast tables  (Warren Little <warren.little@meridiascapital.com>)
Список pgsql-admin
Warren Little <warren.little@meridiascapital.com> writes:
> Could this be the reference to the toast table that is preventing the
> vacuum from deleting the toast data?  And what purges "dropped" columns
> if not a full vacuum.

Actually, the way that toast references work is that they'll go away at
the next update of the row containing the reference.  The reason you've
still got a pile of unremovable toast data is evidently that a lot of
the parent table's rows have remained untouched since the wide bytea
column existed.  (We choose not to do this housekeeping immediately
during DROP COLUMN, but to defer it until the next row update.)

One way to clean up the junk would be to do a trivial full-table update
("UPDATE foo SET f1 = f1") and then VACUUM FULL, but there are other
ways that are more efficient.  If you're using a PG version released
within the last year, CLUSTER will do the job nicely.

            regards, tom lane

В списке pgsql-admin по дате отправления:

Предыдущее
От: andy@andycc.net
Дата:
Сообщение: Re: connection refused 274D/10061
Следующее
От: Tom Lane
Дата:
Сообщение: Re: WAL recovery question - 0000001.history