pg_dump potential bug

Поиск
Список
Период
Сортировка
Искать

pg_dump potential bug

От:
Marcin Kowalski <kowalski@datrix.co.za>
Дата:
Hi All...

I've got a slight problem with pg_dump in Postgres v7.0.3, in basically 
duplicates all the data that it extracts

I do a 
testdatabase>CREATE TABLE bob (number int4,description text);
testdatabase>INSERT INTO TABLE bob VALUES (4453,'This is just a test of 
pg_dump');

then 

kowalski@dagoba > pg_dump -t bob testdatabase 
\connect - kowalski
CREATE TABLE "bob" (
        "number" int4,
        "description" text
);
CREATE TABLE "bob" (
        "number" int4,
        "description" text
);
COPY "bob" FROM stdin;
4453    This is just a test of pg_dump
\.
COPY "bob" FROM stdin;
4453    This is just a test of pg_dump
\.

As you can see the records are duplicated. I discovered this when I tried 
to migrate from 7.0.3 to 7.1 and found performance suddenly took a terrible 
dive. Is there a patch for pg_dump ??

Thanks for any help
MarCin

Re: [ADMIN] pg_dump potential bug

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Marcin Kowalski  writes:
> Is it possible that one of the system tables has been corrupted and shows 
> multiple entries for the tables?

Come to think of it, this is a fairly likely behavior if you have
multiple entries in pg_shadow with the same usesysid.

			regards, tom lane
FAQ