Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 6251E633737 for ; Tue, 31 Aug 2010 12:45:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 71493-01 for ; Tue, 31 Aug 2010 15:44:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 32F7263308B for ; Tue, 31 Aug 2010 12:44:53 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o7VFioj00972; Tue, 31 Aug 2010 11:44:50 -0400 (EDT) From: Bruce Momjian Message-Id: <201008311544.o7VFioj00972@momjian.us> Subject: Re: Tuple changes from relfilenodes In-Reply-To: <4C77A7E40200002500034D33@gw.wicourts.gov> To: Kevin Grittner Date: Tue, 31 Aug 2010 11:44:50 -0400 (EDT) CC: "=?ISO-8859-15?Q?*ukasz=20Brodziak?=" , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201008/285 X-Sequence-Number: 35534 Kevin Grittner wrote: > *ukasz Brodziak wrote: > > From: Kevin.Grittner@wicourts.gov > > >> Are you looking for statistics or the actual prior versions of > >> rows? > > > I'm looking for actual versions of row data. What I want to > > achieve as a final result is a kind of data change history. > > Well, unless you are suppressing the vacuum behavior which normally > occurs, your history won't go back very far; and if you do suppress > vacuums, performance will begin to fall of fairly quickly. > > Tuples representing old versions of rows may be eliminated as soon > as there is no transaction which would still be able to see them. Well, single-page vacuums are even more likely to remove old data, and you can't turn that off. I am working on am MVCC talk for PG/West that will show how agressive those single-page (HOT and non-HOT) vacuums are. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +