pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedcopy error?
3+ messages / 2 participants
[nested] [flat]
* copy error?
@ 2001-10-08 14:07 lt <lt@basecity.com>
0 siblings, 0 replies; 3+ messages in thread
From: lt @ 2001-10-08 14:07 UTC (permalink / raw)
To: pgsql-admin
Hi all,
Database: 7.1.3 (RPM)
OS: Redhat 7.1
Table: Create table jquserdata (
Username varchar(20) not null, primary
key,
¡)
Copy some corrupted data from a 7.1.3 (Encoding ASCII) with pg_dump, then
copy them (psql ¨Ce gamedb <data) to a new database(Encoding EUC_CN), some
error reported (duplicate primary key), I erased these rows and re-execute,
finally all data copied, next ,vaccum ¨Cz gamedb, this error still reported:
Cannot insert a duplicate key into unique index jquserdata_pkey !
Why? Everything is Ok when I use 7.0.2, but after I upgraded my database to
7.1.2 (next 7.1.3), things goes wrong. If no one can answer this question,
the only thing I can do is go back to 7.0.2. But how to downgrade a database
^ permalink raw reply [nested|flat] 3+ messages in thread
* copy error?
@ 2001-10-08 15:13 lt <lt@basecity.com>
0 siblings, 1 reply; 3+ messages in thread
From: lt @ 2001-10-08 15:13 UTC (permalink / raw)
To: pgsql-admin
Hi all,
Database: 7.1.3 (RPM)
OS: Redhat 7.1
Table: Create table jquserdata (
Username varchar(20) not null, primary
key,
¡)
Copy some corrupted data from a 7.1.3 (Encoding ASCII) with pg_dump, then
copy them (psql ¨Ce gamedb <data) to a new database(Encoding EUC_CN), some
error reported (duplicate primary key), I erased these rows and re-execute,
finally all data copied, next ,vaccum ¨Cz gamedb, this error still reported:
Cannot insert a duplicate key into unique index jquserdata_pkey !
Why? Everything is Ok when I use 7.0.2, but after I upgraded my database to
7.1.2 (next 7.1.3), things goes wrong. If no one can answer this question,
the only thing I can do is go back to 7.0.2. But how to downgrade a database
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: copy error?
@ 2001-10-08 15:49 Tom Lane <tgl@sss.pgh.pa.us>
parent: lt <lt@basecity.com>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2001-10-08 15:49 UTC (permalink / raw)
To: lt <lt@basecity.com>; +Cc: pgsql-admin
"lt" <lt@basecity.com> writes:
> OS: Redhat 7.1
What glibc version are you using? There's a serious bug in strcoll()
in glibc versions before 2.2.3 --- see
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=36539
In a multibyte-enabled Postgres this can lead to core dumps and
corrupted indexes; you seem to be suffering the latter.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-10-08 15:49 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-08 14:07 copy error? lt <lt@basecity.com>
2001-10-08 15:13 copy error? lt <lt@basecity.com>
2001-10-08 15:49 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox