Re: [SQL] Postgres Table grows very quickly?

Поиск
Список
Период
Сортировка
От Michael Richards
Тема Re: [SQL] Postgres Table grows very quickly?
Дата
Msg-id Pine.BSF.4.10.9909132232590.63880-100000@scifair.acadiau.ca
обсуждение исходный текст
Ответ на Postgres Table grows very quickly?  (Michael Green <michael.green@gbst.com>)
Список pgsql-sql
On Tue, 14 Sep 1999, Michael Green wrote:

> UPDATE routerinfo SET lastdate = '09-14-1999', lasttime = '09:00' WHERE
> linkid = 'Sydney';
> 
> Routerinfo is 8k after the initial update, from then on it grows 8k for
> every update. I never do an insert and it never grows beyond 16 rows. It

Check out mvcc. Basically running an update does duplicate the tuple. A
vacuum will reclaim the extra space. 8k (an entire page) seems a little
excessive for each updated tuple, but I don't really know anything about
how data is physically stored.

I generally run vacuum; once a night and vacuum analyze; once a week, but
that's more or less dependant on tyour database.

-Michael



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

Предыдущее
От: Michael Green
Дата:
Сообщение: Postgres Table grows very quickly?
Следующее
От: Michael Richards
Дата:
Сообщение: Array Madness