From: | Hunter Hillegas <lists(at)lastonepicked(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Mass Import/Generate PKs |
Date: | 2004-11-06 20:29:48 |
Message-ID: | BDB2743C.47A3E%lists@lastonepicked.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
That sounds nice and easy...
So, I would do something like 'ALTER TABLE' to generate the PK column? What
would be the best way to populate it? Is there an area of doco I should be
looking at?
Thanks,
Hunter
> From: Peter Eisentraut <peter_e(at)gmx(dot)net>
> Date: Sat, 6 Nov 2004 21:21:25 +0100
> To: Hunter Hillegas <lists(at)lastonepicked(dot)com>, PostgreSQL
> <pgsql-general(at)postgresql(dot)org>
> Subject: Re: [GENERAL] Mass Import/Generate PKs
>
> Hunter Hillegas wrote:
>> I have a CSV file with 400,000 lines of email mailing list
>> information that I need to migrate to a new PostgreSQL database.
>>
>> Each line has all the info I need except a PK (I usually use an int4
>> column for a PK).
>
> You could import the file into PostgreSQL and add a primary key column
> later.
>
> --
> Peter Eisentraut
> http://developer.postgresql.org/~petere/
>
From | Date | Subject | |
---|---|---|---|
Next Message | Pierre-Frédéric Caillaud | 2004-11-06 21:11:15 | Re: Trying to get postgres to use an index |
Previous Message | Peter Eisentraut | 2004-11-06 20:21:25 | Re: Mass Import/Generate PKs |