Re: row_to_json(), NULL values, and AS

2018-06-17 Thread Tom Lane
I wrote: > So I'm now pretty well convinced that this is a good change and we > should slip it into v11. I wrote a test case and was about ready to commit this, when I started wondering about the behavior for fdresult == FUNCDETAIL_MULTIPLE. That is, suppose that the notation f(x) matches more tha

Re: row_to_json(), NULL values, and AS

2018-06-16 Thread Tom Lane
I wrote: > Neil Conway writes: >> On Fri, Jun 15, 2018 at 7:53 AM Tom Lane wrote: >>> I'm a bit hesitant to muck with this behavior, given that it's stood >>> for ~20 years. However, if we did want to touch it, maybe the right >>> thing would be to give up the absolutist position that f(x) and x