cardinality()

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: cardinality()
Date: 2009-03-01 00:52:05
Message-ID: 49A9DC35.40304@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


We seem to have acquired a cardinality() function with almost no
discussion, and it has semantics that are a bit surprising to me. I
should have thought cardinality(array) would be the total number of
elements in the array. Instead, it seems it is a synonym for
array_length(array,1). Is that *really* what the standard says?

cheers

andrew

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-03-01 04:22:45 Re: add_path optimization
Previous Message Andrew Dunstan 2009-02-28 20:38:17 Re: Synchronous replication & Hot standby patches