X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A73D5D1B522 for ; Thu, 25 Sep 2003 17:01:54 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 27170-10 for ; Thu, 25 Sep 2003 14:01:23 -0300 (ADT) Received: from ecintweb.eldocomp.com (smtp.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id 00F76D1B50A for ; Thu, 25 Sep 2003 14:01:22 -0300 (ADT) Received: by ecintweb.eldocomp.com with XWall v3.27j ; Thu, 25 Sep 2003 10:01:06 -0700 From: Naomi Walker To: "pgsql-admin@postgresql.org" Subject: pg_dump & SQL statements Date: Thu, 25 Sep 2003 10:01:04 -0700 X-Assembled-By: XWall v3.27j X-Mailer: QUALCOMM Windows Eudora Version 5.1 Message-ID: <5.1.0.14.2.20030925092700.02636890@imap.eldocomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/409 X-Sequence-Number: 10497 I regularly need to unload some rows from tables, and load into different= =20 databases, sometimes on different hosts. In simple cases, I can do=20 something like: psql -At -d dbname -c "select from table where...." Due to some embedded tabs and other anomalies in our data, we then have to= =20 pipe the output to a perl script that transforms the wierdness (like=20 tabs/crlf). pg_dump handles all this perfectly, but cannot be used because it dumps an= =20 entire table. I read the code for pg_dump, and it appears it handles the problem by=20 looking at every character, less than a " ", it converts to an octal charac= ter. Has anyone considered hacking pg_dump so I could send it a "select=20 ....."? If not, could I please put this on the wish list? Naomi -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you.