Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0C7B5632EF4 for ; Tue, 1 Jun 2010 00:59:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 04470-09 for ; Tue, 1 Jun 2010 03:59:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 34E8F632E8E for ; Tue, 1 Jun 2010 00:59:05 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id DF363348034; Mon, 31 May 2010 20:59:03 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wBfm71Age5Hw; Mon, 31 May 2010 20:59:01 -0700 (PDT) Received: from perhan.alvh.no-ip.org (190-95-18-247.bk17-dsl.surnet.cl [190.95.18.247]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 79B6E348002; Mon, 31 May 2010 20:59:01 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 6B2986E867; Mon, 31 May 2010 23:58:59 -0400 (CLT) Content-Type: text/plain; charset=UTF-8 Cc: Gabriele Bartolini , "pgsql-admin@postgresql.org" Subject: Re: What is field separator? From: Alvaro Herrera To: Tena Sakai In-reply-to: References: Date: Mon, 31 May 2010 23:58:59 -0400 Message-Id: <1275364687-sup-2201@alvh.no-ip.org> User-Agent: Sup/0.11 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001 X-Spam-Level: X-Archive-Number: 201006/2 X-Sequence-Number: 34780 Excerpts from Tena Sakai's message of lun may 31 21:36:41 -0400 2010: > But when I do this: > $ echo "select marker, p, afreq from gallo.fbat_sdsdecode limit 10" | \ > > psql -P 'format=unaligned' -P 'fieldsep=\t' -t -f - musket > (here the only change from the previous is the specification of fieldsep) > Then I get: > RS3094315\t0.578121\t0.735 Use a literal tab. You can enter this in decent shells with Ctrl-V followed by a tab. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support