Re: count_nulls(VARIADIC "any")

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Geoghegan <pg(at)heroku(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Greg Stark <stark(at)mit(dot)edu>, Marko Tiikkaja <marko(at)joh(dot)to>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: count_nulls(VARIADIC "any")
Date: 2015-08-13 00:19:01
Message-ID: CAKFQuwawJq1Sf3jLFeJAE24MmvsAdieLrxkboJU9OaTJojk3YA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Aug 12, 2015 at 4:11 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> Peter Geoghegan <pg(at)heroku(dot)com> writes:
> > On Wed, Aug 12, 2015 at 10:30 AM, Alvaro Herrera
> > <alvherre(at)2ndquadrant(dot)com> wrote:
> >> The name count_nulls() suggest an aggregate function to me, though.
>
> > I thought the same.
>
> Ditto. I'd be fine with this if we can come up with a name that
> doesn't sound like an aggregate. The best I can do offhand is
> "number_of_nulls()", which doesn't seem very pretty.
>
>
nulls_in(a, b, c) IN (0, 3) - yes the repetition is not great...

David J.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-08-13 01:08:27 Re: WIP: SCRAM authentication
Previous Message Andres Freund 2015-08-12 23:43:55 Re: Macro nesting hell