MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/iywtgb/postgresql_13_released/g6fp0gd/?context=3
r/programming • u/progrethth • Sep 24 '20
236 comments sorted by
View all comments
Show parent comments
4
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
14
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
6
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
8
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
2
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
But it's not mongo, so it won't eat your data :P
4
u/Dokiace Sep 24 '20
is this JSONB storage a new thing implemented in postgres?