Re: What does count(*) count?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: csegyud(at)vnet(dot)hu
Cc: "'Reid Thompson'" <Reid(dot)Thompson(at)ateb(dot)com>, "Pgsql-General(at)Postgresql(dot)Org (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: What does count(*) count?
Date: 2003-12-31 17:05:10
Message-ID: 11071.1072890310@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?iso-8859-1?Q?Egy=FCd_Csaba?= <csegyud(at)vnet(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2003-12-31 17:16:17 Re: Is my MySQL Gaining ?
Previous Message Tom Lane 2003-12-31 16:46:34 Re: Bug and/or feature? Complex data types in tables...