Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2CE902E00C3 for ; Wed, 2 Jan 2008 07:54:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41749-02 for ; Wed, 2 Jan 2008 07:54:52 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 571BC2E00B5 for ; Wed, 2 Jan 2008 07:54:52 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-101-79.bk7-dsl.surnet.cl [200.126.101.79]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m02BscfL004295 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Jan 2008 03:54:41 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id B0FB347C8C; Wed, 2 Jan 2008 08:54:35 -0300 (CLST) Date: Wed, 2 Jan 2008 08:54:35 -0300 From: Alvaro Herrera To: Guillaume Lelarge Cc: Tom Lane , "ivan.hou" , pgsql-admin@postgresql.org Subject: Re: What's the XID? Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <477B4D37.4090105@lelarge.info> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Wed, 02 Jan 2008 03:54:42 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/9 X-Sequence-Number: 27783 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? -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support