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 E0639D1B4A3 for ; Fri, 28 Nov 2003 22:22:33 +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 09737-07 for ; Fri, 28 Nov 2003 18:22:05 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 04CBCD1B4AE for ; Fri, 28 Nov 2003 18:22:03 -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 hASMLuO0042916 for ; Fri, 28 Nov 2003 22:21:57 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hASMCF7a041345 for pgsql-admin@postgresql.org; Fri, 28 Nov 2003 22:12:15 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.admin Subject: Re: pg_restore and transaction id wraparound Date: Fri, 28 Nov 2003 17:08:48 -0500 Organization: cbbrowne Computing Inc Lines: 18 Message-ID: References: <20031128211125.1938.qmail@web21407.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:huxe/cHtI/0KHLbRpB2AsUyB5/A= To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/517 X-Sequence-Number: 11504 Quoth oneway_111@yahoo.com (ow): > Hypothetical situation: a table containing, say, 10 billion rows is backed up > and then restored with pg_restore. Would this lead to the transaction id > wraparound issue since 10B rows are imported in one "batch"? No. Copying the 10 billion rows in only consumes one xid. - If you're in "autocommit mode," then each SQL statement consumes one xid. - If you type in BEGIN;, then you could have 10 billion SQL statements after that, and they would, altogether, consume 1 xid. -- "aa454","@","freenet.carleton.ca" http://www3.sympatico.ca/cbbrowne/sgml.html To iterate is human; to recurse, divine.