how many record versions

From: David Garamond <lists(at)zara(dot)6(dot)isreserved(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: how many record versions
Date: 2004-05-22 19:44:31
Message-ID: 40AFAD9F.6000104@zara.6.isreserved.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

begin;
update t set val=val+1; -- 1000 times
commit;

How many record versions does it create? 1 or 1000? I'm implementing a
banner counter which is incremented at least 2-3 millions a day. I
thought I'd cheat by only commiting after every few minutes. Would that
work or would I still create as many record versions?

--
dave

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2004-05-23 15:49:59 Re: DB design opinions - Foreign Key usage
Previous Message Octavio Alvarez Piza 2004-05-22 18:32:14 Re: could not open relation