Re: proposal: ignore null fields in not relation type composite type based constructors - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: proposal: ignore null fields in not relation type composite type based constructors
Date
Msg-id 20140908042712.GB16422@tamriel.snowman.net
Whole thread Raw
In response to Re: proposal: ignore null fields in not relation type composite type based constructors  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: proposal: ignore null fields in not relation type composite type based constructors  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: proposal: ignore null fields in not relation type composite type based constructors  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
* Pavel Stehule (pavel.stehule@gmail.com) wrote:
> ignore_nulls in array_to_json_pretty probably is not necessary. On second
> hand, the cost is zero, and we can have it for API consistency.

I'm willing to be persuaded either way on this, really.  I do think it
would be nice for both array_to_json and row_to_json to be single
functions which take default values, but as for if array_to_json has a
ignore_nulls option, I'm on the fence and would defer to people who use
that function regularly (I don't today).

Beyond that, I'm pretty happy moving forward with this patch.
Thanks,
    Stephen

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: [BUGS] BUG #10823: Better REINDEX syntax.
Next
From: Amit Kapila
Date:
Subject: Re: pg_background (and more parallelism infrastructure patches)