Re: Uncommitted Data

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Jonathan Tripathy <jonnyt(at)abpni(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Uncommitted Data
Date: 2010-12-08 20:54:20
Message-ID: 1291841660.2872.1320.camel@ebony
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2010-12-08 at 00:56 +0000, Jonathan Tripathy wrote:

> What does PG do with data that has been inserted into a table, but was
> never committed? Does the data get discarded once the connection dies?

The data is there, but is not visible. You can run an explicit VACUUM to
remove the "dead rows", or you can wait for it to be garbage collected
automatically at some point in the future, depending upon your workload.

--
Simon Riggs http://www.2ndQuadrant.com/books/
PostgreSQL Development, 24x7 Support, Training and Services

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2010-12-08 20:55:33 Re: pg_standby logging issues
Previous Message Tom Lane 2010-12-08 20:24:03 Re: Postgresql 9.1 pg_last_xact_replay_timestamp limitations