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)
Список
Дерево обсуждения
Jsonb: jbvBinary usage in the convertJsonbValue? Dmitry Dolgov <9erthalion6@gmail.com>
Re: Jsonb: jbvBinary usage in the convertJsonbValue? Robert Haas <robertmhaas@gmail.com>
Re: Jsonb: jbvBinary usage in the convertJsonbValue? Andrew Dunstan <andrew@dunslane.net>
Re: Jsonb: jbvBinary usage in the convertJsonbValue? Andrew Dunstan <andrew@dunslane.net>
Re: Jsonb: jbvBinary usage in the convertJsonbValue? Andrew Dunstan <andrew@dunslane.net>
Re: Jsonb: jbvBinary usage in the convertJsonbValue? Peter Geoghegan <pg@heroku.com>
On Mon, Jun 2, 2014 at 7:22 AM, Andrew Dunstan 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
Дата:
От: Stephen Frost
Дата: