Re: VACUUM FULL pg_largeobject without (much) downtime?

Поиск
Список
Период
Сортировка
От Adam Hooper
Тема Re: VACUUM FULL pg_largeobject without (much) downtime?
Дата
Msg-id CAMWjz6F_y5Sv2M6m837njJavqXBT-7HL+yqqZ66Q5V4sMwwYvQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: VACUUM FULL pg_largeobject without (much) downtime?  (Bill Moran <wmoran@potentialtech.com>)
Ответы Re: VACUUM FULL pg_largeobject without (much) downtime?  (Bill Moran <wmoran@potentialtech.com>)
Список pgsql-general
On Tue, Feb 3, 2015 at 12:58 PM, Bill Moran <wmoran@potentialtech.com> wrote:
> On Tue, 3 Feb 2015 10:53:11 -0500
> Adam Hooper <adam@adamhooper.com> wrote:
>
>> This plan won't work: Step 2 will be too slow because pg_largeobject
>> still takes 266GB. We tested `VACUUM FULL pg_largeobject` on our
>> staging database: it took two hours, during which pg_largeobject was
>> locked. When pg_largeobject is locked, lots of our website doesn't
>> work.
>
> Sometimes CLUSTER is faster than VACUUM FULL ... have you tested CLUSTERing
> of pg_largeobject on your test system to see if it's fast enough?

On the 30GB that's left on staging, it takes 50min. Unfortunately, our
staging database is now at 30GB because we already completed a VACUUM
FULL on it. It seems difficult to me to revert that operation. But I
need an orders-of-magnitude difference, and this clearly isn't it.

> How big is the non-lo data?

It's 65GB, but I've used pg_repack to move it to a separate tablespace
so it won't affect downtime.

Enjoy life,
Adam

--
Adam Hooper
+1-613-986-3339
http://adamhooper.com


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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: postgres cust types
Следующее
От: Bill Moran
Дата:
Сообщение: Re: VACUUM FULL pg_largeobject without (much) downtime?