Re: What does count(*) count? - Mailing list pgsql-general

From Tom Lane
Subject Re: What does count(*) count?
Date
Msg-id 11071.1072890310@sss.pgh.pa.us
Whole thread Raw
In response to Re: What does count(*) count?  (Együd Csaba <csegyud@vnet.hu>)
Responses Re: What does count(*) count?
List pgsql-general
=?iso-8859-1?Q?Egy=FCd_Csaba?= <csegyud@vnet.hu> writes:
> I've got it, but I don't know the reason of it.
> In the database table the records have duplicated and I've two rows for
> every primary key - with different OIDs.

Sure sounds like a child table to me.

> Is there any safe method to get rid of only one of each duplicated row?

Drop the child table.

            regards, tom lane

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: What does count(*) count?
Next
From: Robert Treat
Date:
Subject: Re: Is my MySQL Gaining ?