pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Lelarge <guillaume@lelarge.info>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: ivan.hou <ivan.hou@msa.hinet.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: What's the XID?
Date: Wed, 02 Jan 2008 13:57:37 +0100
Message-ID: <477B8A41.6010803@lelarge.info> (raw)
In-Reply-To: <20080102115435.GB31408@alvh.no-ip.org>
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>
	<20080102115435.GB31408@alvh.no-ip.org>

Alvaro Herrera wrote:
> Guillaume Lelarge wrote:
> 
>> 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)
> 
> Ever thought of doing it all in a single transaction?
> 

Well, I'm not sure of the consequences of this. I'll get a look at this.
 What I first thought on my previous mail was to keep in memory a list
of all types available, but this was stupid : it needs refresh when
another user adds a new type and I'm sure there are others corner cases.
I much prefer your idea, thanks.


-- 
Guillaume.
 http://www.postgresqlfr.org
 http://dalibo.com



view thread (18+ messages)  latest in thread

Message-ID: <477B8A41.6010803@lelarge.info>
Permalink:  ../477B8A41.6010803@lelarge.info/
Also on:    postgresql.org/message-id/477B8A41.6010803@lelarge.info

 · 

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: guillaume@lelarge.info, alvherre@commandprompt.com, tgl@sss.pgh.pa.us, ivan.hou@msa.hinet.net
  Subject: Re: What's the XID?
  In-Reply-To: <477B8A41.6010803@lelarge.info>

* 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