From: PFC <lists@boutiquenumerique.com>
To: Andrew Mayo <ajmayo@kohuconsulting.com>
To: pgsql-performance@postgresql.org
Subject: Re: Performance of count(*) on large tables vs SQL Server
Date: Tue, 01 Feb 2005 14:36:30 +0100
Message-ID: <opslite4tuth1vuj@musicbox> (raw)
In-Reply-To: <20050201124143.43977.qmail@web206.biz.mail.re2.yahoo.com>
References: <20050201124143.43977.qmail@web206.biz.mail.re2.yahoo.com>
> clause will be a cheap query - and use it to test if
> a table is empty, for instance. (because for
> Oracle/Sybase/SQL Server, count(*) is cheap).
To test if a table is empty, use a SELECT EXISTS or whatever SELECT with
a LIMIT 1...
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-performance@postgresql.org
Cc: lists@boutiquenumerique.com, ajmayo@kohuconsulting.com
Subject: Re: Performance of count(*) on large tables vs SQL Server
In-Reply-To: <opslite4tuth1vuj@musicbox>
* 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