r/programming • • Sep 24 '20

PostgreSQL 13 Released!

https://www.postgresql.org/about/news/2077/
1.3k Upvotes

236 comments sorted by

View all comments

Show parent comments

4

u/Dokiace Sep 24 '20

is this JSONB storage a new thing implemented in postgres?

14

u/mobydikc Sep 24 '20

version 9.4 I think.

6

u/Dokiace Sep 24 '20

So it's been out for a while huh, how come I never heard of this, so you can just INSERT <JSON> into TABLE and it will handle that?

8

u/DrunkensteinsMonster Sep 24 '20

JSONB is a column type. Possible use case: you have an object that has another object as a property. Instead of creating a new table and having a foreign key, just serialize the property and store it in a JSONB column

2

u/Dokiace Sep 24 '20

So just like in mongo when you're inserting a new object into an existing object? that's neat

4

u/[deleted] Sep 24 '20

But it's not mongo, so it won't eat your data :P