X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0360FD1B29D for ; Fri, 2 Jul 2004 17:07:35 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47550-03 for ; Fri, 2 Jul 2004 20:07:36 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id ADA59D1B27C for ; Fri, 2 Jul 2004 17:07:33 -0300 (ADT) 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 i62K7XZ3032099 for ; Fri, 2 Jul 2004 20:07:33 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i62JoUFu029030 for pgsql-admin@postgresql.org; Fri, 2 Jul 2004 19:50:30 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.admin Subject: Re: Dumping partial database content Date: Fri, 02 Jul 2004 15:15:13 -0400 Organization: cbbrowne Computing Inc Lines: 22 Message-ID: References: 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.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:NXPRWpUxbeuu3WIVtB+FsiP6oSk= To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/49 X-Sequence-Number: 14117 Martha Stewart called it a Good Thing when cbender@mriresearch.org ("Bender, Cheryl") wrote: > Just wondering--is it possible to dump on a temporary table? The temp table is only visible inside the context of the transaction under which it was created. A pg_dump session will create an independent transaction context, where the table won't be visible, alas. So you can't use pg_dump to dump the data out. You may, however, use COPY to dump it out yourself. select * into temp table foo from bar; copy foo to '/tmp/foo_contents.txt'; -- If this was helpful, rate me http://www.ntlug.org/~cbbrowne/postgresql.html Rules of the Evil Overlord #50. "My main computers will have their own special operating system that will be completely incompatible with standard IBM and Macintosh powerbooks."