From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Dmitry Dolgov <9erthalion6(at)gmail(dot)com> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Jsonb: jbvBinary usage in the convertJsonbValue? |
Date: | 2014-06-02 14:02:53 |
Message-ID: | CA+TgmoYJV5h+EhTvqC0LcbXrg0VgHaZVLwWaT2CBDO0Dqt-PoA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, May 29, 2014 at 7:34 AM, Dmitry Dolgov <9erthalion6(at)gmail(dot)com> wrote:
> I'm little confused by the convertJsonbValue functon at jsonb_utils.c
> Maybe I misunderstood something, so I need help =)
>
>>>> if (IsAJsonbScalar(val) || val->type == jbvBinary)
>>>> convertJsonbScalar(buffer, header, val);
>
> As I can see, the convertJsonbScalar function is used for scalar and binary
> jsonb values. But this function doesn't handle the jbvBinary type.
There definitely seems to be an oversight here of some kind. Either
convertJsonbValue() shouldn't be calling convertJsonbScalar() with an
object of type jbvBinary, or convertJsonbScalar() should know how to
handle that case.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2014-06-02 14:05:39 | Re: Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE? |
Previous Message | Fujii Masao | 2014-06-02 13:59:55 | Re: pg_stat directory and pg_stat_statements |