Re: JSON Function Bike Shedding - Mailing list pgsql-hackers

From Tom Lane
Subject Re: JSON Function Bike Shedding
Date
Msg-id 2051.1360714559@sss.pgh.pa.us
Whole thread Raw
In response to Re: JSON Function Bike Shedding  (Josh Berkus <josh@agliodbs.com>)
Responses Re: JSON Function Bike Shedding
List pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
> David,
>> However, I am not so keen on the function names. They all start with
>> json_! This mostly feels redundant to me, since the types of the
>> parameters are part of the function signature.

> I have no opinion about starting the function names with json_ or not.

+1 for removing that where possible.  We generally have avoided such
names at SQL level.  (The C-level function names need such prefixes to
be unique, but the SQL names don't.)

In the cases where one or more arguments are anyelement, however, we may
need to be more specific to avoid ambiguity problems in future.  I agree
with Josh's objections to record(), row() etc.  to_record() and
to_recordset() might be OK.
        regards, tom lane



pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: JSON Function Bike Shedding
Next
From: Josh Berkus
Date:
Subject: Cluster Summit Agenda started