Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 8523D9FBC11 for ; Thu, 24 May 2007 12:28:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 18653-04 for ; Thu, 24 May 2007 12:28:07 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web53510.mail.re2.yahoo.com (web53510.mail.re2.yahoo.com [206.190.37.71]) by postgresql.org (Postfix) with SMTP id B32689FB8E7 for ; Thu, 24 May 2007 12:28:07 -0300 (ADT) Received: (qmail 77450 invoked by uid 60001); 24 May 2007 15:28:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=6Dn97VGFMJTGzGCAnLz2UhBEP9WpUU7mlCvJWg5KF/nMCpvYDRPEtse0kJOXyJxxXAX/DvHrcJ4INNEaNP3e4nP+y+Qh1Gz3QXoJoSYaSB4T5p/7nrGDTkF13345LX2GeuA8rF3SLcdBzqZ56G+dzk/sxP2dk5BYAgmqod11roI=; X-YMail-OSG: MHn05lQVM1kB34z5n6BAq_0Rnhm9Ql9h2L6y9ocfLVh6Mzgxeck2Eg3HE3EG74s_xxefpT6G1481NZZFWaNPDMSF6X0ymaPfMypGH4zUoRtCvdsGezZpAZjAJ6D43w-- Received: from [209.87.238.132] by web53510.mail.re2.yahoo.com via HTTP; Thu, 24 May 2007 08:28:06 PDT X-Mailer: YahooMailRC/651.23.1 YahooMailWebService/0.7.41.10 Date: Thu, 24 May 2007 08:28:06 -0700 (PDT) From: jing han Subject: transactionID wraparound problem To: pgsql-interfaces@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Message-ID: <924920.77151.qm@web53510.mail.re2.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.185 tagged_above=0 required=5 tests=AWL=-0.721, BAYES_20=-0.74, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, DNS_FROM_RFC_WHOIS=1.447, FROM_HAS_ULINE_NUMS=0.291 X-Spam-Level: ** X-Archive-Number: 200705/52 X-Sequence-Number: 6559 Hello, In our project, we create one database named mydbname. when I use select datname from pg_database; I got: datname ----------- postgres mydbname template1 template0 According to the postgresql document, in order to prevent transaction ID wraparound failures, in my code, I use: SELECT datname, age(datfrozenxid) FROM pg_database; datname | age -----------+------------ postgres | 1086137251 mydbname | 1073771662 template1 | 1086137306 template0 | 13977307 to check if age of postgres, template1, mydbname are over 1500000000, if one of them age number is over 1500000000, for example, postgres age number is over 1500000000 I do psql --username=postgres -c 'VACUUM full' -d postgres I have to do vacuum on template1, mydbname, and postgres, but not at the same time. Is this the correct way to get rid of transaction ID wraparound failure? Any answer will be appreciated. jing ____________________________________________________________________________________Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/