Re: count function alternative in postgres - Mailing list pgsql-general

From Tom Lane
Subject Re: count function alternative in postgres
Date
Msg-id 14131.1270493226@sss.pgh.pa.us
Whole thread Raw
In response to Re: count function alternative in postgres  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-general
Merlin Moncure <mmoncure@gmail.com> writes:
> On Sat, Apr 3, 2010 at 3:02 PM, Scott Bailey <artacus@comcast.net> wrote:
>> SELECT COUNT( DISTINCT row(col1, col2, col3) ) FROM foo

> very clever!  This is similar to how I use rowtypes to get around the
> single column restrictions on function calls in the select field list.

Cute, but note it will only work in 8.4 or later ...

            regards, tom lane

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: count function alternative in postgres
Next
From: Heine Ferreira
Date:
Subject: windows 7 compatiblity?