Re: SELECT COUNT(*)... returns 0 ROWS

From: Jeff <threshar(at)torgo(dot)978(dot)org>
To: "PostgreSQL" <postgres(at)coopelesca(dot)co(dot)cr>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: SELECT COUNT(*)... returns 0 ROWS
Date: 2003-10-31 19:47:37
Message-ID: 20031031144737.0faca65f.threshar@torgo.978.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, 31 Oct 2003 13:33:09 -0600
"PostgreSQL" <postgres(at)coopelesca(dot)co(dot)cr> wrote:

> I have instaled Postgres 7.3.4 on RH 9,
> if I excecute:
>
> select count(*) from cj_tranh;
> count
> -------
> 0
> (1 row)
>
> Why the result us CERO? the table have 1.400.000 rows!
> What is wrong? Anybody help please.
>

1. did you remember to load data?
2. did someone accidentally delete the data?
3. are you connected to the correct db (I've panic'd before but realized
I was on dev, not production!)?
4. sure that is the right table?

--
Jeff Trout <jeff(at)jefftrout(dot)com>
http://www.jefftrout.com/
http://www.stuarthamm.net/

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-10-31 21:13:17 Re: ? in explain query
Previous Message Tom Lane 2003-10-31 19:45:57 Re: dumping tables from badly damaged db