From: | Ken Tozier <kentozier(at)comcast(dot)net> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Importing a tab delimited text file - How? |
Date: | 2004-10-25 01:09:10 |
Message-ID: | 7A0ECFC2-2622-11D9-87A4-003065F300E2@comcast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Doug, Robby,
Thanks. That did the trick.
Ken
On Oct 24, 2004, at 8:02 PM, Doug McNaught wrote:
> Ken Tozier <kentozier(at)comcast(dot)net> writes:
>
>> I've been looking though the PostgreSQL documentation but can't seem
>> to find a command for importing files. I read the documentation
>> related to large objects but this isn't what I'm looking for as I
>> don't want to import the entire file into a single field, I want to
>> import it as a table. I'm sure there's a way to do it but I can't seem
>> to find the magic command.
>>
>> Could someone point me to (or provide) an example?
>
> You want the SQL COPY statement, or the \copy command in 'psql'.
>
> -Doug
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if
> your
> joining column's datatypes do not match
>
From | Date | Subject | |
---|---|---|---|
Next Message | Chris | 2004-10-25 03:14:30 | partial index on a text field |
Previous Message | Tom Lane | 2004-10-25 01:05:17 | Re: Memory exhausted on DELETE. |