Re: Continuous inserts... - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: Continuous inserts...
Date
Msg-id Pine.BSF.4.10.10008180814340.1321-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: Continuous inserts...  (Joerg Hessdoerfer <Joerg.Hessdoerfer@sea-gmbh.com>)
List pgsql-sql
On Fri, 18 Aug 2000, Joerg Hessdoerfer wrote:
> Good idea - I immediately tested it - rules rule! That seems to work perfectly,
> and the client doesn't even see it happen (except for 'selects', one would 
> have to setup
> a rule to return something meaningful then...).
> 
> I did:
> Two tables, a and b.
> Normally, insert into a.
> When Vacuuming starts, create rule on a to insert into b
> Vacuum a
> drop rule
> copy records from b to a
> vacuum b
> 
> Why did you suppose three tables? Did I overlook something?

I didn't try with vacuum, I just did a table lock and that
seemed to still hang the inserts with two tables, so I figured 
maximum safety was adding the third table.  If it works with two 
that's much cooler.  Was this with real data or just a small test 
set? 



pgsql-sql by date:

Previous
From: "Poul L. Christiansen"
Date:
Subject: update rule loops
Next
From: Stephan Szabo
Date:
Subject: Re: update rule loops