Re: Jsonb: jbvBinary usage in the convertJsonbValue?

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Jsonb: jbvBinary usage in the convertJsonbValue?
Дата
Msg-id CAM3SWZSRVByrSbBK5QPDZHpVQGfSrmMqbz8WzvyqAQRk2A2RLQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Jsonb: jbvBinary usage in the convertJsonbValue?  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
On Mon, Jun 2, 2014 at 7:22 AM, Andrew Dunstan <andrew@dunslane.net> wrote:
> Yes, I've just been looking at that. I think this is probably a hangover
> from when these routines were recast to some extent. Given that we're not
> seeing any errors from it, I'd be inclined to remove the the "|| val->type
> == jbvBinary" part. One of the three call sites to convertJsonbValue asserts
> that this can't be true, and doing so doesn't result in a regression
> failure.

Well, I guess the latter condition should be moved, since clearly the
jbvBinary case isn't handled within convertJsonbScalar(). It would be
mildly preferable to have a more accurate error message (the
convertJsonbValue() error) if that "can't happen" condition should
ever happen.

-- 
Peter Geoghegan



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Re-create dependent views on ALTER TABLE ALTER COLUMN ... TYPE?