Vacuuming

Поиск
Список
Период
Сортировка
От Paul Lambert
Тема Vacuuming
Дата
Msg-id 463FD59C.1060509@autoledgers.com.au
обсуждение исходный текст
Ответы Re: Vacuuming  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Is there any point to vacuuming a table if it has been bulk-populated by
data after a truncate?

I.e. If I do this:
TRUNCATE TABLE vehicles;
INSERT INTO vehicles (SELECT DISTINCT ON (dealer_id,vehicle_address) *
FROM vehicles_temp_load WHERE (dealer_id,vehicle_address) is not null);

Is there any point in vacuuming?

Also, is there any point in recreating indexes on this table after a
load like this or will indexes have been correctly maintained/updated by
the above insert. Note: This insert often loads tens of millions of records.

BTW, this is on Windows.

Thanks,
Paul.

--
Paul Lambert
Database Administrator
AutoLedgers

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

Предыдущее
От: "Richard P. Welty"
Дата:
Сообщение: Re: Anyone know a good opensource CRM that actually installs with Posgtres?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Vacuuming