iT邦幫忙

0

[PostgreSQL]關於 jsonb 資料型態的二進位儲存

  • 分享至 

  • twitterImage

你好,我目前使用的是 PostgreSQL 9.4 beta1 版。
參考了一些 PostgreSQL官方的新聞,提到 PostgreSQL 9.4 版新增的 jsonb 資料型態是用
二進位的方式儲存 json 資料的,但是我使用 PgAdmin 查詢 jsonb的資料型態欄位,卻是
用基本的 select 語法就可以看見的文本資料,如以下畫面:

這基本上和 9.2版和9.3版的 json 型態欄位有差別嗎?

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

2
海綿寶寶
iT邦大神 1 級 ‧ 2014-06-20 07:19:05

arthur1977提到:
參考了一些 PostgreSQL官方的新聞

建議你看一下這篇 官方文件
裡面針對 json / jsonb 兩種資料型態
做了很簡單扼要的說明

官方介紹
pgsql: Introduce jsonb, a structured format for storing json.
The new type has all the functions and operators that the json type has,
with the exception of the json generation functions (to_json, json_agg etc.)
and with identical semantics. In addition, there are operator classes for
hash and btree indexing, and two classes for GIN indexing
, that have no
equivalent in the json type.

我要發表回答

立即登入回答