From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff <threshar@torgo.978.org>
Cc: PostgreSQL <postgres@coopelesca.co.cr>
Cc: pgsql-admin@postgresql.org
Subject: Re: SELECT COUNT(*)... returns 0 ROWS
Date: Fri, 31 Oct 2003 16:27:31 -0500
Message-ID: <19924.1067635651@sss.pgh.pa.us> (raw)
In-Reply-To: <20031031144737.0faca65f.threshar@torgo.978.org>
References: <WorldClient-F200310311333.AA33090196@coopelesca.co.cr>
<20031031144737.0faca65f.threshar@torgo.978.org>
Jeff <threshar@torgo.978.org> writes:
> "PostgreSQL" <postgres@coopelesca.co.cr> wrote:
>> Why the result us CERO? the table have 1.400.000 rows!
> 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?
I'm wondering about MVCC-related conditions, which adds a couple
more questions:
5. Did you actually commit the transaction that loaded the rows?
6. Are you doing the SELECT COUNT(*) in a transaction that started
before the data-loading transaction committed?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, threshar@torgo.978.org, postgres@coopelesca.co.cr
Subject: Re: SELECT COUNT(*)... returns 0 ROWS
In-Reply-To: <19924.1067635651@sss.pgh.pa.us>
References: <WorldClient-F200310311333.AA33090196@coopelesca.co.cr> <20031031144737.0faca65f.threshar@torgo.978.org> <19924.1067635651@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox