Re: how many records - Mailing list pgsql-novice

From Stuart Woodward
Subject Re: how many records
Date
Msg-id 20030911101954.F765.WOODWARD@garage.co.jp
Whole thread Raw
In response to Re: how many records  (Simon Willison <cs1spw@bath.ac.uk>)
Responses Re: how many records
List pgsql-novice
> Bryan Irvine wrote:
> Is there an easy way to count how many records there are?

On Wed, 10 Sep 2003 18:26:30 +0100
Simon Willison <cs1spw@bath.ac.uk> wrote:

> Yes, using count(*):
> select count(*) from tablename;

Is there any performance difference in explicitly naming a column to
count?

i.e select count(id) from tablename;

(I know that a lot of beginners always "select *" even when they don't
need all the information which (I think) is slower than selecting just
what need.)


pgsql-novice by date:

Previous
From: "Louise Cofield"
Date:
Subject: Macro substitution in Postgres
Next
From: Bruno Wolff III
Date:
Subject: Re: how many records