From: | Guillaume Lelarge <guillaume(at)lelarge(dot)info> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "ivan(dot)hou" <ivan(dot)hou(at)msa(dot)hinet(dot)net>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: What's the XID? |
Date: | 2008-01-02 12:57:37 |
Message-ID: | 477B8A41.6010803@lelarge.info |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Mark Steben | 2008-01-02 15:04:53 | Re: reconfiguring diskspace while upgrading to 8.2.5 |
Previous Message | Alvaro Herrera | 2008-01-02 11:54:35 | Re: What's the XID? |