DEV Community

Discussion on: Explain PostgreSQL Like I'm Five

Collapse
 
rhymes profile image
rhymes

I feel like, at least for MySQL, the JSON support appeared after PostgreSQL implemented it :-)

Another couple of things PostgreSQL does really well: utf-8 (don't know why but for a while the default utf-8 implementation in MySQL was limited to three bytes) and managing and querying geographical data.

Collapse
 
dmfay profile image
Dian Fay

Yeah, I've been looking into MySQL's JSON stuff in the past couple weeks and it definitely seems to be playing catch-up. Postgres hasn't solved the problem space entirely, but MySQL has a smaller function suite, no binary JSON, no direct indexing, and no lateral join. You can't even get a real boolean out of a JSON document in-query because MySQL doesn't have a boolean type and can't cast to tinyint.