pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brett W. McCoy <bmccoy@lan2wan.com>
To: pgsql-sql@postgreSQL.org
Subject: DISTINCT not working
Date: Sun, 13 Jun 1999 16:15:37 -0400 (EDT)
Message-ID: <Pine.BSI.3.91.990613161032.10940A-100000@access1.lan2wan.com> (raw)

I have this view that is based upon selecting distinct values of a column
and providing the count of rows for that distinct value.  It is being 
used in an application so that when it is started (via a web browser), 
various statistics about the database are shown.  This has been working 
fine for about 2 months, but suddenly, on Friday, the view stopped 
working, it returns a single row with an empty value and a 0 count.

If I do a direct SQL statement to pull out the distinct values frm the 
base table, it also returns a single row.  The values are there, as there 
are over 100,000 rows in the table, and there should be about 6 distinct 
values for the column in question.  I tried reindexing, vaccuming, and 
everything, but cannot figure out why any statements selecting distinct 
values on this table aren't working.

Why would this happen?  Has something gotten corrupted?

Brett W. McCoy           
                                         http://www.lan2wan.com/~bmccoy
-----------------------------------------------------------------------
Look, we play the Star Spangled Banner before every game.  You want us
to pay income taxes, too?
		-- Bill Veeck, Chicago White Sox




view thread (2+ messages)

Message-ID: <Pine.BSI.3.91.990613161032.10940A-100000@access1.lan2wan.com>
Permalink:  ../Pine.BSI.3.91.990613161032.10940A-100000@access1.lan2wan.com/
Also on:    postgresql.org/message-id/Pine.BSI.3.91.990613161032.10940A-100000@access1.lan2wan.com

 · 

reply

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-sql@postgresql.org
  Cc: bmccoy@lan2wan.com
  Subject: Re: DISTINCT not working
  In-Reply-To: <Pine.BSI.3.91.990613161032.10940A-100000@access1.lan2wan.com>
  References: <Pine.BSI.3.91.990613161032.10940A-100000@access1.lan2wan.com>

* 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