pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Hoover <revoohc@gmail.com>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: What happens on a commit?
Date: Wed, 23 May 2007 10:13:51 -0400
Message-ID: <1d219a6f0705230713k83eff27y3a9db9ade4839ee0@mail.gmail.com> (raw)
In-Reply-To: <20070522193010.GH11032@alvh.no-ip.org>
References: <1d219a6f0705221025i1c1d036eq4769b133cac7499@mail.gmail.com>
	<1d219a6f0705221110v6718eaa1w67e17ac0c940772a@mail.gmail.com>
	<20070522193010.GH11032@alvh.no-ip.org>

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?

Thanks,

Chris

On 5/22/07, Alvaro Herrera <alvherre@commandprompt.com> wrote:
>
> Chris Hoover escribió:
> > I found an e-mail showing how to strace and here is what I have
> found.  Does
> > it help/mean anything to those who can decode this?
> >
> > We are installing PostgreSQL from the official rpms.
> >
> > Chris
> >
> > time strace -c -p 2690
> > Process 2690 attached - interrupt to quit
> > Process 2690 detached
> > % time     seconds  usecs/call     calls    errors syscall
> > ------ ----------- ----------- --------- --------- ----------------
> > 42.80   13.003288         251     51790           recv
> > 17.47    5.306686          30    175916           send
>
> This means that 60% of the time spent by system calls is due to network
> operations.  But they account to 18.3 seconds, whereas this
>
> > real    27m21.090s
> > user    0m5.379s
> > sys     0m23.073s
>
> says that the total time spent is 27:21.  So you have to explain the
> remaining 27:03 which are elsewhere.
>
> --
> Alvaro Herrera
> http://www.CommandPrompt.com/
> The PostgreSQL Company - Command Prompt, Inc.
>

view thread (5+ messages)  latest in thread

Message-ID: <1d219a6f0705230713k83eff27y3a9db9ade4839ee0@mail.gmail.com>
Permalink:  ../1d219a6f0705230713k83eff27y3a9db9ade4839ee0@mail.gmail.com/
Also on:    postgresql.org/message-id/1d219a6f0705230713k83eff27y3a9db9ade4839ee0@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: revoohc@gmail.com, alvherre@commandprompt.com
  Subject: Re: What happens on a commit?
  In-Reply-To: <1d219a6f0705230713k83eff27y3a9db9ade4839ee0@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox