Returning JSON or JSONB

Поиск
Список
Период
Сортировка
От Dane Foster
Тема Returning JSON or JSONB
Дата
Msg-id CA+WxinJCCwJ6b1C=6xYkGtaDfUnRk6wmn9TTYsJV6zYN++xLZw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Returning JSON or JSONB
Список pgsql-general
Hello,

I was wondering when returning JSON data from a PostgreSQL function for consumption by clients (e.g., PHP or Lua) does it make any difference to declare the function's return type as JSON or JSONB?

Now that I've actually written the question down it occurs to me that what I really want to know is which data type (JSON or JSONB or maybe TEXT) has the lowest overhead in terms of transformation and transmission at the PostgreSQL protocol level.

Thanks,

Dane

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

Предыдущее
От: Scott Mead
Дата:
Сообщение: Re: [BUGS] postgresql table data control
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Returning JSON or JSONB