Copying data from a tab delimited file into a table - Mailing list pgsql-novice

From Carol Walter
Subject Copying data from a tab delimited file into a table
Date
Msg-id 5C8D060F-C97A-4BC9-B50F-F1384F55A2C3@sbcglobal.net
Whole thread Raw
Responses Re: Copying data from a tab delimited file into a table  (James David Smith <james.david.smith@gmail.com>)
Re: Copying data from a tab delimited file into a table  (Carol Walter <carol.walter@sbcglobal.net>)
List pgsql-novice
I'm trying to copy the data from a tab delimited file into a postgres table. The table has a primary key that's
designatedas a serial data type. When I try to do the copy, it "blows up" unless I put a integer number in the field
wherethe primary key will be. That defeats the purpose of designating this field as serial. When I put data into that
fieldthe copy works but an insert statement fails because it says there is a duplicate key. How can I get the data from
thisfile into my table and still have the key field designated with a "serial data type"? 

Thanks,
Carol

pgsql-novice by date:

Previous
From: Gavin Flower
Date:
Subject: Re: Help with nearest location
Next
From: James David Smith
Date:
Subject: Re: Copying data from a tab delimited file into a table