

What’s the difference between json and jsonb?
Postgresql json functions serial#
Note that we use a SERIAL pseudo-type which automatically creates a unique primary key. The first two types, json and jsonb, are just like any other PostgreSQL data types, so can be used to specify column types as follows: Why does PostgreSQL need JSON specific data types? For creating table columns with JSON types, efficiency in storing data, enforcing JSON specific rules, and support for queries.

Object, XML, JSON, etc.), but more recently there’s a convergence as many databases, including “traditional” SQL databases, increasingly support multiple document types. I later discovered that he has written a more in-depth book, and the one page JSON slide from the talk has a whole chapter ( chapter 4) devoted to this topic in his book.Ī (very) brief summary is that there was an explosion of “document” oriented databases dedicated to specific unstructured data types (e.g.

One of the most interesting Percona talks I listened to recently was by Guy Harrison on “Next Generation Databases”. But, even though JSON was designed for interoperability, it is increasingly used for storage, and thus begins our story… JSON and Databases
