Name MongoDB PostgreSQL
Description One of the most
popular document
stores
Based on the
object relational
DBMS Postgres
DB-Engines Ranking
Trend Chart
Rank 5
Score 224.62
Rank 4
Score 240.64
Website www.mongodb.org www.postgresql.org
Technical documentation docs.mongodb.org/-
manual
www.postgresql.org/-
docs/manuals
Developer MongoDB, Inc PostgreSQL Global
Development
Group
Initial release 2009 1989
License Open Source Open Source
Implementation language C++ C
Server operating systems Linux
OS X
Solaris
Windows
HP-UX
Linux
OS X
Solaris
Unix
Windows
Database model Document store Relational DBMS
Data scheme schema-free yes
Typing yes yes
Secondary indexes yes yes
SQL no yes
APIs and other access
methods
proprietary
protocol using
JSON
native C library
streaming API for
large objects
ADO.NET
JDBC
ODBC
Supported programming
languages
Actionscript
C
C#
C++
Clojure
ColdFusion
D
Dart
Delphi
Erlang
Go
Groovy
Haskell
Java
JavaScript
Lisp
Lua
MatLab
Perl
PHP
PowerShell
Prolog
Python
R
Ruby
Scala
Smalltalk
.Net
C
C++
Java
Perl
Python
Tcl
Server-side scripts JavaScript user defined
functions
Triggers no yes
Partitioning methods Sharding no, but can be
realized using
table inheritance
Replication methods Master-slave
replication
Master-slave
replication
MapReduce yes no
Consistency concepts Eventual
Consistency
Immediate
Consistency
Foreign keys no yes
Transaction concepts no ACID
Concurrency yes yes
Durability yes yes
User concepts Users can be
defined with full
access or read-
only access
Users with fine-
grained
authorization
concept