News for hackers. Stuff that matters.
Re:PostgreSQL 10 Beta 1 Released by _Codemonkeyism on Friday May 19, 2017 @12:41AM (#14373079)
Using MySQL/Mongo for some years, major problems with MongoDB Cloud Manager (several hours site down due to Cloud Manager removing the mongo binary), for some time now I use pg for new projects and think it's great.

Two gripes:

1. Client libraries in Mongo work nicer with documents than Postgres libraries with JSONB (e.g. Scala Option[] mapping to non existing/existing fields)

2. Why is the Postgres JSON syntax so different? Why not just support SELECT document.field.field instead of (inconsistent) document->'field'. Imho pg JSON syntax is hard to read and new to learn.

Re:PostgreSQL 10 Beta 1 Released by luhn on Friday May 19, 2017 @01:28AM (#14373244)
Re 2: That syntax is already in use by `SELECT schema.column`. I do agree that the syntax is a bit cumbersome and harder to learn, but I'm not sure if they could have done much better while being consistent with SQL.
Re:PostgreSQL 10 Beta 1 Released by _Codemonkeyism on Saturday May 20, 2017 @12:16PM (#14383054)
Why can't pg same the same syntax? I'm sure it could detect if it's a table column or a document field - or am I missing something? Why not handle documents and columns the same, with documents a a kind of hierarchical columns.