Re: [PATCH] few fts functions for jsonb - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [PATCH] few fts functions for jsonb
Date
Msg-id CAA8=A7_mGqeFmrkKLqV3VdaEy=QRY+PFg_n+3+KBoyRybXE=kw@mail.gmail.com
Whole thread Raw
In response to [HACKERS] [PATCH] few fts functions for jsonb  (Dmitry Dolgov <9erthalion6@gmail.com>)
Responses Re: [PATCH] few fts functions for jsonb  (Dmitry Dolgov <9erthalion6@gmail.com>)
List pgsql-hackers
On 26 March 2017 at 17:57, Dmitry Dolgov <9erthalion6@gmail.com> wrote:
>> I'm not through looking at this. However, here are a few preliminary
>> comments
>
> I've attached new versions of the patches with improvements related to these
> commentaries.

These patches seem fundamentally OK. But I'm still not happy with the
naming etc.

I think the header changes would probably be better placed in
jsonapi.h or in a new header file.

And the names still seem too general to me. e.g. transform_json_values
should probably be transform_json_string_values, and the static
support functions should be renamed to match. Also the
JsonIterateAction and JsonTransformAction funtion typedefs should
probably be renamed to match.

I'm not sure there is any great point in the is_jsonb_data macro,
which is only used in one spot. I would get rid of it and expand the
test in place.

I don't have much time this week to work on it, as there are one or
two other patches I also want to look at.  If you clean these things
up I will commit it. The second patch looks fine.

cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Stas Kelvich
Date:
Subject: Re: logical decoding of two-phase transactions
Next
From: Alvaro Herrera
Date:
Subject: Re: Patch: Write Amplification Reduction Method (WARM)