pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jim@nasby.net>
To: Sriram Dandapani <sdandapani@counterpane.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: transaction id wraparound
Date: Thu, 28 Sep 2006 14:29:10 -0500
Message-ID: <20060928192910.GZ34238@nasby.net> (raw)
In-Reply-To: <6992E470F12A444BB787B5C937B9D4DF060E5A57@ca-mail1.cis.local>
References: <6992E470F12A444BB787B5C937B9D4DF060E5A57@ca-mail1.cis.local>

Interesting... age(xid) isn't documented anywhere.

No, vacuum shouldn't be generating a lot of xid's. My guess is that your
generating process actually does 2 transactions per row.

On Thu, Sep 28, 2006 at 11:16:24AM -0700, Sriram Dandapani wrote:
> When I run this query
> 
>  
> 
> fwdb01=# select current_timestamp,datname,age(datfrozenxid) from
> pg_database;
> 
>               now              |  datname  |    age
> 
> -------------------------------+-----------+------------
> 
>  2006-09-28 18:04:24.489935+00 | postgres  | 1087834006
> 
>  2006-09-28 18:04:24.489935+00 | fwdb01    | 2039254861
> 
>  2006-09-28 18:04:24.489935+00 | template1 | 2039253122
> 
>  2006-09-28 18:04:24.489935+00 | template0 | 1542808250
> 
> (4 rows)
> 
>  
> 
> fwdb01=# select current_timestamp,datname,age(datfrozenxid) from
> pg_database;
> 
>              now              |  datname  |    age
> 
> ------------------------------+-----------+------------
> 
>  2006-09-28 18:10:45.64452+00 | postgres  | 1088357075
> 
>  2006-09-28 18:10:45.64452+00 | fwdb01    | 2039777930
> 
>  2006-09-28 18:10:45.64452+00 | template1 | 2039776191
> 
>  2006-09-28 18:10:45.64452+00 | template0 | 1543331319
> 
>  
> 
>  
> 
> In approximately 6 minutes, the fwdb01 count has gone up by about 500K.
> I am generating about 250K rows for every 6 . I am also running
> vacuumdb.
> 
>  
> 
> Does vacuumdb generate a lot of transactions that affects this counter.
> 

-- 
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)



view thread (4+ messages)  latest in thread

Message-ID: <20060928192910.GZ34238@nasby.net>
Permalink:  ../20060928192910.GZ34238@nasby.net/
Also on:    postgresql.org/message-id/20060928192910.GZ34238@nasby.net

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jim@nasby.net, sdandapani@counterpane.com
  Subject: Re: transaction id wraparound
  In-Reply-To: <20060928192910.GZ34238@nasby.net>
  References: <6992E470F12A444BB787B5C937B9D4DF060E5A57@ca-mail1.cis.local> <20060928192910.GZ34238@nasby.net>

* 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