Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id E4A5DC955BC for ; Mon, 4 Jun 2012 12:29:43 -0300 (ADT) Received: from gwmta.wicourts.gov ([165.219.244.99] helo=gw.wicourts.gov) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SbZDx-00088x-CK for pgsql-bugs@postgresql.org; Mon, 04 Jun 2012 15:29:43 +0000 Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 04 Jun 2012 10:29:27 -0500 Message-Id: <4FCC8E020200002500048003@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.2 Date: Mon, 04 Jun 2012 10:29:22 -0500 From: "Kevin Grittner" To: "Bruce Momjian" , "jo" Cc: ,"Tom Lane" Subject: Re: BUG #6669: unique index w/ multiple columns and NULLs References: <2870.1338521291@sss.pgh.pa.us> <4FC86818.4080002@sferacarta.com> <20120604150552.GB2352@momjian.us> In-Reply-To: <20120604150552.GB2352@momjian.us> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/23 X-Sequence-Number: 33250 Bruce Momjian wrote: > COUNT(*) can't skip nulls because there is no specified column, > but why does COUNT(col) skip nulls --- again, inconsistent. I disagree -- one is counting rows, the other is counting rows with a value in that column. I guess one could criticize the syntax for specifying that as non-obvious, but it seems pretty reasonable to me. -Kevin