X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4B28E475E14 for ; Fri, 28 Feb 2003 08:21:42 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 38586-07 for ; Fri, 28 Feb 2003 08:21:30 -0500 (EST) Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by postgresql.org (Postfix) with SMTP id 1D06D475CBC for ; Fri, 28 Feb 2003 04:34:42 -0500 (EST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Fri Feb 28 10:34:42 2003 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id KAA12932; Fri, 28 Feb 2003 10:34:41 +0100 (MET) Message-ID: <3E5F2D30.1F27A69F@rodos.fzk.de> Date: Fri, 28 Feb 2003 10:34:41 +0100 From: Christoph Haller X-Mailer: Mozilla 4.77 [en] (X11; U; HP-UX B.10.20 9000/780) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Cc: val@webtribe.net Subject: Re: Copy from a SELECT Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/613 X-Sequence-Number: 12011 > > I've got *very* limited HDD space for the amount of information I need to > copy out. The place to where the CSV file is would be output is NTFS and > from the Postgres documentation, it states that I should not put the table > oid files there and link in order to free up space in the default drive. > > I've tried using \o to stream the output to a file on the NTFS area, but the > machine ran out of memory (memory = 2G). Are you using PgAccess? Did you think about using psql, possibly via script? I can hardly imagine psql would run a 2G machine out of memory. > > I was looking for a work around to copy out the section of data I wanted to > a temporary table and then copy that table out ..... Using \o FILENAME within psql does not even require a temp table, because query results are simply sent to FILENAME. > Or did I misunderstand your intentions completely? Regards, Christoph