pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ivan.hou <ivan.hou@msa.hinet.net>
To: pgsql-admin@postgresql.org
Subject: Re: What's the XID?
Date: Wed, 2 Jan 2008 18:28:27 -0800 (PST)
Message-ID: <14590661.post@talk.nabble.com> (raw)
In-Reply-To: <477B4D37.4090105@lelarge.info>
References: <14508639.post@talk.nabble.com>
	<20071227154243.GF8160@crankycanuck.ca>
	<14573789.post@talk.nabble.com>
	<9801.1199251949@sss.pgh.pa.us>
	<477B4D37.4090105@lelarge.info>


how do u know this theory ? 1 + (2 * number of columns in the SELECT)
just try & test? or have any document?

Guillaume Lelarge-3 wrote:
> 
> Tom Lane wrote:
>> "ivan.hou" <ivan.hou@msa.hinet.net> writes:
>>> step 1. SELECT datname, age(datfrozenxid) FROM pg_database;
>>> --> mydb age:33183
>>> step 2. SELECT datname, age(datfrozenxid) FROM pg_database;
>>> --> mydb age:33188
>> 
>>> why always increased by 5?
>> 
>> If you do it directly in psql, it increases by 1.
>> 
>>> Postgresql Ver:8.1.3
>>> using pgAdminIII Query window
>> 
>> Perhaps you should ask the pgAdmin people what they're doing behind your
>> back ...
> 
> We first send the query to the database. For each returned column, we
> send two queries. The first one gives us the type's name of the column
> and the second one gives us the OID of the base type. So, each query
> executed with pgAdmin's query tool should increase age(datfrozenxid) by :
>   1 + (2 * number of columns in the SELECT)
> 
> Regards.
> 
> 
> -- 
> Guillaume.
>  http://www.postgresqlfr.org
>  http://dalibo.com
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
> 
> 

-- 
View this message in context: http://www.nabble.com/What%27s-the-XID--tp14508639p14590661.html
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.




view thread (18+ messages)  latest in thread

Message-ID: <14590661.post@talk.nabble.com>
Permalink:  ../14590661.post@talk.nabble.com/
Also on:    postgresql.org/message-id/14590661.post@talk.nabble.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: ivan.hou@msa.hinet.net
  Subject: Re: What's the XID?
  In-Reply-To: <14590661.post@talk.nabble.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