X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id DBE70D1B4FB for ; Fri, 31 Oct 2003 21:55:58 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 85278-06 for ; Fri, 31 Oct 2003 17:55:29 -0400 (AST) Received: from wlesca.coopelesca.co.cr (wlesca.coopelesca.co.cr [200.9.39.10]) by svr1.postgresql.org (Postfix) with ESMTP id 706CAD1B4E4 for ; Fri, 31 Oct 2003 17:55:26 -0400 (AST) Received: from coopelesca.co.cr (mailhost [172.16.0.10]) by wlesca.coopelesca.co.cr (8.12.8+Sun/8.12.2) with SMTP id h9VLqtU7003674 for ; Fri, 31 Oct 2003 15:52:55 -0600 (CST) Received: from WorldClient by coopelesca.co.cr (MDaemon.PRO.v6.8.5.R) with ESMTP id 17-md50000000015.tmp; Fri, 31 Oct 2003 15:59:21 -0600 Received: from [200.9.39.12] via WorldClient with HTTP; Fri, 31 Oct 2003 15:59:21 -0600 Date: Fri, 31 Oct 2003 15:59:21 -0600 From: "PostgreSQL" To: pgsql-admin@postgresql.org Subject: Re: SELECT COUNT(*)... returns 0 ROWS Message-ID: X-Mailer: WorldClient 6.8.5 In-Reply-To: <19924.1067635651@sss.pgh.pa.us> References: <20031031144737.0faca65f.threshar@torgo.978.org> <19924.1067635651@sss.pgh.pa.us> X-Spam-Processed: coopelesca.co.cr, Fri, 31 Oct 2003 15:59:21 -0600 (not processed: spam filter disabled) X-Return-Path: postgres@coopelesca.co.cr X-MDaemon-Deliver-To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/426 X-Sequence-Number: 10987 Thank to all I was in the WRONG database. Sorry, and thanks! -----Original Message----- From: Tom Lane To: Jeff Cc: "PostgreSQL" , pgsql-admin@postgresql.org Date: Fri, 31 Oct 2003 16:27:31 -0500 Subject: Re: [ADMIN] SELECT COUNT(*)... returns 0 ROWS > Jeff writes: > > "PostgreSQL" 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 > > ---------------------------(end of > broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to > majordomo@postgresql.org