4

There's plenty of questions on SO about the differences between OO databases like MongoDB vs relational databases, but I can't find anything about the differences between a relational database like MySQL vs an object-relational database like PostgreSQL at a high level. I understand that these two particular databases have differing functionality respectively, but I don't really understand why something like MySQL that claims to be simply relational doesn't return the same formed data as an object-relational database like PostgreSQL. Some of what I read on other sources say it's what they return when queried that is different; is this true?

4
  • This a very general question. Why should different database be required to return the same formed data? Not sure of the context. For the most part SQL queries that don't deviate from the SQL standard will will return the same result. Commented Nov 20, 2018 at 2:13
  • Can you try to clarify the purpose of this differentiation? If you want comments on the accuracy of differences, be precise and quote references. Commented Nov 20, 2018 at 2:15
  • Who says that Postgres is an object relational database, and MySQL is not? Is there any real meaning here? Commented Nov 20, 2018 at 2:20
  • @TimBiegeleisen "PostgreSQL is a powerful, open source object-relational database system.." from the postgresl website. I want to know how that's different from just a relational database. Commented Nov 20, 2018 at 2:30

1 Answer 1

4

Maybe this entry from DBA Stackexchange would be helpful:

https://dba.stackexchange.com/questions/77340/how-to-understand-object-relational

In particular, this answer: https://dba.stackexchange.com/a/77344/111252

Essentially it describes built-in inheritance features of Postgres that are outside of the SQL standard. That seems to be the key difference.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.