Re: Continuous inserts...
От | Stephan Szabo |
---|---|
Тема | Re: Continuous inserts... |
Дата | |
Msg-id | Pine.BSF.4.10.10008180814340.1321-100000@megazone23.bigpanda.com обсуждение исходный текст |
Ответ на | Re: Continuous inserts... (Joerg Hessdoerfer <Joerg.Hessdoerfer@sea-gmbh.com>) |
Список | 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 по дате отправления: