Re: reclaiming diskspace bloat w/near-zero downtime - Mailing list pgsql-general

From Ed L.
Subject Re: reclaiming diskspace bloat w/near-zero downtime
Date
Msg-id 200412041355.38941.pgsql@bluepolka.net
Whole thread Raw
In response to reclaiming diskspace bloat w/near-zero downtime  ("Ed L." <pgsql@bluepolka.net>)
List 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 by date:

Previous
From: David Fetter
Date:
Subject: Re: [ANNOUNCE] PostgreSQL 8.0.0 Release Candidate 1
Next
From: Együd Csaba
Date:
Subject: Posgres8 beta5 on WinXP won't start