json_object_agg return on no rows - Mailing list pgsql-hackers

From Andrew Dunstan
Subject json_object_agg return on no rows
Date
Msg-id 54230FE7.8040306@dunslane.net
Whole thread Raw
List pgsql-hackers
Probably due to an oversight on my part, json_object_agg currently 
returns a json object with no fields rather than NULL, which the docs 
say it will, and which would be  consistent with all other aggregates 
except count().

I don't think we ever discussed this, so it's probably just a slip up.

I'm going to change it to return NULL in this case unless there is some 
objection.

cheers

andrew



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: better atomics - v0.6
Next
From: Heikki Linnakangas
Date:
Subject: Re: add modulo (%) operator to pgbench