| From: | Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com> |
|---|---|
| To: | Marko Tiikkaja <marko(at)joh(dot)to>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: count_nulls(VARIADIC "any") |
| Date: | 2015-11-22 20:17:34 |
| Message-ID: | 565222DE.1000109@BlueTreble.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 11/22/15 11:34 AM, Marko Tiikkaja wrote:
> On 2015-11-22 18:29, Jim Nasby wrote:
>> Only if you know how many columns there already are.
>>
>> Or does this not work if you hand it a row?
>
> It "works" in the sense that it tells you whether the row is NULL or
> not. I.e. the answer will always be 0 or 1.
Hrm, I was hoping something like count_nulls(complex_type.*) would work.
I guess one could always create a wrapper function that does
count_not_nulls() anyway.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jim Nasby | 2015-11-22 20:19:11 | Re: custom function for converting human readable sizes to bytes |
| Previous Message | Marko Tiikkaja | 2015-11-22 20:16:18 | Re: custom function for converting human readable sizes to bytes |