Skip site navigation (1) Skip section navigation (2)

pg_dump potential bug

From: Marcin Kowalski <kowalski(at)datrix(dot)co(dot)za>
To: pgsql-admin(at)postgresql(dot)org(dot)pgsql-bugs(at)postgresql(dot)org(dot)pgsql-general(at)postgresql(dot)org
Subject: pg_dump potential bug
Date: 2001-03-27 09:03:07
Message-ID: 99pkvj$2are$1@news.tht.net (view raw or flat)
Thread:
Lists: pgsql-adminpgsql-bugspgsql-generalpgsql-hackerspgsql-sql
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(at)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


Responses

pgsql-hackers by date

Next:From: Pete FormanDate: 2001-03-27 09:20:07
Subject: Fix for possible pg_dump core dump
Previous:From: Tatsuo IshiiDate: 2001-03-27 08:57:24
Subject: Re: Call for platforms

pgsql-sql by date

Next:From: juerg.rietmannDate: 2001-03-27 09:20:18
Subject: Re: Still don't know how to build this string ? how to concat ??
Previous:From: Richard HuxtonDate: 2001-03-27 08:26:47
Subject: Re: pl/pgsql and returning rows

pgsql-admin by date

Next:From: antkenDate: 2001-03-27 16:10:15
Subject: Starting postgresql on boot
Previous:From: Subra RadhakrishnanDate: 2001-03-27 02:22:03
Subject: Sorry, too many clients already

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2001-03-27 09:35:11
Subject: Wrong formated date on the first day of the Daylight Saving time.
Previous:From: Tom LaneDate: 2001-03-27 01:00:54
Subject: Re: [JDBC] Possible large object bug?

pgsql-general by date

Next:From: gravityDate: 2001-03-27 09:14:57
Subject: Re: Free PostgreSQL Database Hosting - Needs Beta Testers
Previous:From: Tatsuo IshiiDate: 2001-03-27 08:57:24
Subject: Re: Call for platforms

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group