Skip site navigation (1) Skip section navigation (2)

Re: What happens on a commit?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Chris Hoover <revoohc(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: What happens on a commit?
Date: 2007-05-23 14:18:00
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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                      
The PostgreSQL Company - Command Prompt, Inc.

In response to

pgsql-admin by date

Next:From: Joshua KramerDate: 2007-05-23 14:35:35
Subject: Re:
Previous:From: Chris HooverDate: 2007-05-23 14:13:51
Subject: Re: What happens on a commit?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group