Re: is this expected or am i on crack?

From: Chris Jones <chris(at)mt(dot)sri(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: is this expected or am i on crack?
Date: 2001-02-23 16:03:16
Message-ID: a5fitm1mlob.fsf@legolas.mt.sri.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Humphries <chumphries(at)siliconinc(dot)net> writes:

> the sql:
> select keyword from facts as f1
> where 1 <> (select count(*) from facts as f2 where f1.keyword = f2.keyword)
> order by keyword;

Aside from the suggestion of not using a subquery, you could try
making an index on keyword, and doing a VACUUM of the table, before
you try your query -- whatever the query ends up being. Indexes don't
have to be unique, after all.

Chris

--
chris(at)mt(dot)sri(dot)com -----------------------------------------------------
Chris Jones SRI International, Inc.
www.sri.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-02-23 16:14:52 Re: www-sql question
Previous Message Tom Lane 2001-02-23 15:42:34 Re: Using NULL values in calculated results