Re: What happens on a commit? - Mailing list pgsql-admin

From Alvaro Herrera
Subject Re: What happens on a commit?
Date
Msg-id 20070523141800.GJ4642@alvh.no-ip.org
Whole thread Raw
In response to Re: What happens on a commit?  ("Chris Hoover" <revoohc@gmail.com>)
List pgsql-admin
Chris Hoover escribió:
> Ok, we are looking more into this.  In the mean time, can someone please
> explain to me (or point me to the correct documentation) what happens in
> PostgreSQL when a commit is issued.  What exactly does the database do?

It writes a commit WAL record and flushes (fsync) the WAL up to that
point.  This is the more important bit.  Also, async notifies are sent
(those you started with NOTIFY), and files corresponding to some
commands are deleted (e.g. TRUNCATE, CLUSTER, REINDEX).  Temp tables
with ON COMMIT setting may be operated upon.

It entirely depends on what the transaction did.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-admin by date:

Previous
From: "Chris Hoover"
Date:
Subject: Re: What happens on a commit?
Next
From: "filipe paiva"
Date:
Subject: ...