Re: reclaiming diskspace bloat w/near-zero downtime

Поиск
Список
Период
Сортировка
От Ed L.
Тема Re: reclaiming diskspace bloat w/near-zero downtime
Дата
Msg-id 200412041355.38941.pgsql@bluepolka.net
обсуждение исходный текст
Ответ на reclaiming diskspace bloat w/near-zero downtime  ("Ed L." <pgsql@bluepolka.net>)
Список pgsql-general
On Saturday December 4 2004 1:01, Ed L. wrote:
>
> ...I have a
> shell game using rules that goes like this for bloated table foo:
> ...
> begin
>     drop view foo
>     alter table slim_foo rename to foo
> commit
>
> Some basic testing for my particulars suggests this works, but anyone see
> any issues with this?

I guess this is not safe in 7.3.4. :( Dropping the view within a transaction
causes the following error if a triggered function is concurrently
accessing that view:

WARNING:  Error occurred while executing PL/pgSQL function f
WARNING:  line 16 at SQL statement
ERROR:  RelationClearRelation: relation 7372083 deleted while still in use

Ed


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: [ANNOUNCE] PostgreSQL 8.0.0 Release Candidate 1
Следующее
От: Együd Csaba
Дата:
Сообщение: Posgres8 beta5 on WinXP won't start