From: Kevin Way <kevin.way@overtone.org>
To: pgsql-sql@postgresql.org
Subject: aggregate functions, COUNT
Date: Tue, 2 Oct 2001 16:11:21 +0000
Message-ID: <20011002161121.A8772@bean.overtone.org> (raw)
I'm currently using a SELECT count(*) when all I really want to know is
if 1 or more records exist. Is there a standard way to just find out if
a record exists? If not, is there a way to avoid iterating over all the
records by writing an aggregate function? Given what I've read of how
they work, I don't see how to make the function return before parsing
all the results anyway, am I wrong here?
Thanks for any help, or 2x4s,
Kevin Way
--
Kevin Way <kevin.way@overtone.org>
http://www.overtone.org/
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: kevin.way@overtone.org
Subject: Re: aggregate functions, COUNT
In-Reply-To: <20011002161121.A8772@bean.overtone.org>
* 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