Re: [PATCH] few fts functions for jsonb

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [PATCH] few fts functions for jsonb
Дата
Msg-id CAA8=A7_mGqeFmrkKLqV3VdaEy=QRY+PFg_n+3+KBoyRybXE=kw@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] [PATCH] few fts functions for jsonb  (Dmitry Dolgov <9erthalion6@gmail.com>)
Ответы Re: [PATCH] few fts functions for jsonb
Список 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 по дате отправления:

Предыдущее
От: Stas Kelvich
Дата:
Сообщение: Re: logical decoding of two-phase transactions
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Patch: Write Amplification Reduction Method (WARM)