Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 131744758BD for ; Thu, 31 Oct 2002 19:35:55 -0500 (EST) Received: from ECIEXCHANGE.ecinet.com (smtp.eldocomp.com [205.159.99.4]) by postgresql.org (Postfix) with ESMTP id 5FF6B47580B for ; Thu, 31 Oct 2002 19:35:54 -0500 (EST) Received: from NWALKER (nwalker.ecinet.com [172.20.144.110]) by ECIEXCHANGE.ecinet.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id WAC4HKZY; Thu, 31 Oct 2002 17:35:37 -0700 Message-Id: <4.2.2.20021031172442.01d1fdf0@imap.eldocomp.com> X-Sender: nwalke@imap.eldocomp.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Thu, 31 Oct 2002 17:36:07 -0700 To: pgsql-admin@postgresql.org From: Naomi Walker Subject: loading and unloading rows In-Reply-To: <2D92FEBFD3BE1346A6C397223A8DD3FC092061@THOR.goeci.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/329 X-Sequence-Number: 6187 This might sound silly, but I am trying something basic, and having trouble. What I want to do is unload selected rows from a table, and load them somewhere else. pg_dump works great if you want the whole table. I suppose I could from one table, dump into a temp, and then pg_dump it, but that seems silly. I noticed in the pg_dump unloaded looking rows, with a: COPY "table" FROM stdin; before the rows. So, I ran psql, did a \o to capture the output, did a select * from table where x=y whacked the first row in the output file, and added the COPY statement. then did a psql dbname