problem with loading from file

From: "Johnson, Shaunn" <SJohnson6(at)bcbsm(dot)com>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: problem with loading from file
Date: 2002-08-14 12:28:25
Message-ID: 73309C2FDD95D11192E60008C7B1D5BB04C73E12@snt452.corp.bcbsm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Howdy:

I've been trying to restore a large table from file
using the psql -U <user> -d <database> -f <file>
method and I keep getting the errors about
the index. I've tried to load it a few times and
I get the same thing (error). I do look through
and drop the index before loading again.

What am I doing wrong? Is there a quicker way
to load this? I'm seriously considering sed-ing
out the constraint part of the file and re-loading it;
but that will not solve my long term issue when I
may need to reload a similar table.

Suggestions?

-X

[snip error]

You are now connected as new user web.
psql:/var/tmp/backup_sysdates.Sat:20: NOTICE: CREATE TABLE / PRIMARY
KEY will create implicit index 't_aug4_dates_pkey' for table
't_aug4_dates'
CREATE
REVOKE
GRANT
GRANT
GRANT
psql:/var/tmp/backup_sysdates.Sat:40: ERROR: copy: line 5874678, Cannot
insert a duplicate key into unique index t_aug4_dates_pkey
psql:/var/tmp/backup_sysdates.Sat:40: lost synchronization with server,
resetting connection
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
COMMENT
[/snip error]

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Curt Sampson 2002-08-14 12:41:34 Re: Sourceforge moving to DB2
Previous Message Tommi Maekitalo 2002-08-14 12:13:55 Re: Sourceforge moving to DB2