Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 200289FB2A4 for ; Tue, 13 Mar 2007 22:49:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 41452-06 for ; Tue, 13 Mar 2007 22:48:42 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by postgresql.org (Postfix) with ESMTP id 5CE099FA6A2 for ; Tue, 13 Mar 2007 22:48:53 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id x4so9809nfb for ; Tue, 13 Mar 2007 18:48:51 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=o9IiuJjKevkCgII+KBzSEnSy79w53kcU78SV2FhNC/LGIBIIvrGHJXYJdDT59AkGb2CxrZ1rScLd+xzDHv/uKsfg5xnMN2KPUwjbPHqMvSD0d2Q9kjubCZokPwIZvqODpCV7G353StrPG8aso6Gq5KyHmJdQTn/qXJz3/5rPTTk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fp+NG5HKT3RcVxk0eUJCIXQ5V+LGpgF1GBrwJt29ByAIA3wj5XIuxWyWkC4W2jNUuT/DI+n0yhgxHsz2/QJ6dYMHE1IY0e1Uc8IhwG156guixkooA5dAyNNk5VPK11cjc3H5qMQHgvnYs7PAWsLrXiGORGZK1LXHVghwnFJHWRk= Received: by 10.114.107.19 with SMTP id f19mr2696030wac.1173836930321; Tue, 13 Mar 2007 18:48:50 -0700 (PDT) Received: by 10.114.166.8 with HTTP; Tue, 13 Mar 2007 18:48:50 -0700 (PDT) Message-ID: Date: Tue, 13 Mar 2007 20:48:50 -0500 From: "=?ISO-8859-1?Q?Rodrigo_De_Le=F3n?=" To: pgsql-sql@postgresql.org Subject: Re: import CSV file Cc: mailreg@numerixtechnology.de In-Reply-To: <45F73742.2080505@numerixtechnology.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45F70BC9.801@numerixtechnology.de> <20070313182740.ef40e742.darcy@druid.net> <45F73742.2080505@numerixtechnology.de> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/190 X-Sequence-Number: 27828 On 3/13/07, T E Schmitz wrote: > This is pretty ingenious! > Just a few minor problems: > - how does COPY know which column is which? > - how do I specify DELIMITER as TAB? See: http://www.postgresql.org/docs/8.2/static/sql-copy.html > Also, it's nopt happy about the date format : 2007/02/09 See: http://www.postgresql.org/docs/current/static/runtime-config-client.html#GUC-DATESTYLE