X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D052CD1B43B for ; Sun, 30 Nov 2003 00:57:40 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 80873-03 for ; Sat, 29 Nov 2003 20:57:18 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 1C8A1D1B4B9 for ; Sat, 29 Nov 2003 20:57:10 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id hAU0vFbI064725 for ; Sun, 30 Nov 2003 00:57:15 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hAU0aLBX062183 for pgsql-admin@postgresql.org; Sun, 30 Nov 2003 00:36:21 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.admin Subject: Re: pg_restore and transaction id wraparound Date: Sat, 29 Nov 2003 19:32:04 -0500 Organization: cbbrowne Computing Inc Lines: 26 Message-ID: References: <8535.1070134149@sss.pgh.pa.us> <20031129201147.94126.qmail@web21410.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) Cancel-Lock: sha1:A0/MOCMuNlIKrv0vgPnnlTE8/6k= To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/10 X-Sequence-Number: 11518 A long time ago, in a galaxy far, far away, oneway_111@yahoo.com (ow) wrote: > --- Tom Lane wrote: >> Actually you can only have 4 billion SQL commands per xid, because the >> CommandId datatype is also just 32 bits. I've never heard of anyone >> running into that limit, though. > > Perhaps noone yet had a table with 4B records in pgSql. Otherwise, > how would they dump/restore it? I may have been guilty of hyperbole, by using the number 10 billion, but not of proving this impossible. If you had a table that large, dump/restore wouldn't have any XID problems because the normal dump/restore involves copying the data out (ONE query, ONE XID), and then reading it via the COPY command (again, ONE query, ONE XID). And I think I would be quite displeased if I had a table with that many records, in any case, because dump/restore would take an enormously long time as would reindexing. -- (format nil "~S@~S" "cbbrowne" "ntlug.org") http://cbbrowne.com/info/linuxdistributions.html 16-inch Rotary Debugger: A highly effective tool for locating problems in computer software. Available for delivery in most major metropolitan areas. Anchovies contribute to poor coding style.