DBMS > MongoDB vs. PostgreSQL vs. XTDB
System Properties Comparison MongoDB vs. PostgreSQL vs. XTDB
Please select another system to include it in the comparison.
|Editorial information provided by DB-Engines|
|Name||MongoDB Xexclude from comparison||PostgreSQL Xexclude from comparison||XTDB formerly named Crux Xexclude from comparison|
|Description||One of the most popular document stores available both as a fully managed cloud service and for deployment on self-managed infrastructure||Widely used open source RDBMS Developed as objectoriented DBMS (Postgres), gradually enhanced with 'standards' like SQL||A general purpose database with bitemporal SQL and Datalog and graph queries|
|Primary database model||Document store||Relational DBMS with object oriented extensions, e.g.: user defined types/functions and inheritance. Handling of key/value pairs with hstore module.||Document store|
|Secondary database models||Spatial DBMS|
Search engine integrated Lucene index, currently in MongoDB Atlas only.
Time Series DBMS Time Series Collections introduced in Release 5.0
Vector DBMS currently available in the MongoDB Atlas cloud service only
Graph DBMS with Apache Age
Vector DBMS with pgvector extension
|Developer||MongoDB, Inc||PostgreSQL Global Development Group www.postgresql.org/developer||Juxt Ltd.|
|Initial release||2009||1989 1989: Postgres, 1996: PostgreSQL||2019|
|Current release||6.0.7, June 2023||16.1, November 2023||1.19, September 2021|
|License Commercial or Open Source||Open Source MongoDB Inc.'s Server Side Public License v1. Prior versions were published under GNU AGPL v3.0. Commercial licenses are also available.||Open Source BSD||Open Source MIT License|
|Cloud-based only Only available as a cloud service||no MongoDB available as DBaaS (MongoDB Atlas)||no||no|
|DBaaS offerings (sponsored links) Database as a Service|
Providers of DBaaS offerings, please contact us to be listed.
|MongoDB Atlas: Global multi-cloud database with unmatched data distribution and mobility across AWS, Azure, and Google Cloud, built-in automation for resource and workload optimization, and so much more.||Aiven for PostgreSQL: Fully managed PostgreSQL for developers with 70+ extensions and flexible orchestration tools.|
|Server operating systems||Linux|
|All OS with a Java 8 (and higher) VM|
|Data scheme||schema-free Although schema-free, documents of the same collection often follow the same structure. Optionally impose all or part of a schema by defining a JSON schema.||yes||schema-free|
|Typing predefined data types such as float or date||yes string, integer, double, decimal, boolean, date, object_id, geospatial||yes||yes, extensible-data-notation format|
|XML support Some form of processing data in XML format, e.g. support for XML data structures, and/or support for XPath, XQuery or XSLT.||yes specific XML-type available, but no XML query functionality.||no|
|SQL Support of SQL||Read-only SQL queries via the MongoDB Atlas SQL Interface||yes standard with numerous extensions||limited SQL, making use of Apache Calcite|
|APIs and other access methods||GraphQL|
proprietary protocol using JSON
native C library
streaming API for large objects
|Supported programming languages||Actionscript unofficial driver|
Clojure unofficial driver
ColdFusion unofficial driver
D unofficial driver
Dart unofficial driver
Delphi unofficial driver
Groovy unofficial driver
Lisp unofficial driver
Lua unofficial driver
MatLab unofficial driver
PowerShell unofficial driver
Prolog unofficial driver
R unofficial driver
Smalltalk unofficial driver
|Triggers||yes in MongoDB Atlas only||yes||no|
|Partitioning methods Methods for storing different data on different nodes||Sharding Partitioned by hashed, ranged, or zoned sharding keys. Live resharding allows users to change their shard keys as an online operation with zero downtime.||partitioning by range, list and (since PostgreSQL 11) by hash||none|
|Replication methods Methods for redundantly storing data on multiple nodes||Multi-Source deployments with MongoDB Atlas Global Clusters|
|Source-replica replication other methods possible by using 3rd party extensions||yes, each node contains all data|
|MapReduce Offers an API for user-defined Map/Reduce methods||yes||no||no|
|Consistency concepts Methods to ensure consistency in a distributed system||Eventual Consistency can be individually decided for each read operation|
Immediate Consistency default behaviour
|Foreign keys Referential integrity||no typically not used, however similar functionality with DBRef possible||yes||no|
|Transaction concepts Support to ensure data integrity after non-atomic manipulations of data||Multi-document ACID Transactions with snapshot isolation||ACID||ACID|
|Concurrency Support for concurrent manipulation of data||yes||yes||yes|
|Durability Support for making data persistent||yes optional, enabled by default||yes||yes, flexibel persistency by using storage technologies like Apache Kafka, RocksDB or LMDB|
|In-memory capabilities Is there an option to define some or all structures to be held in-memory only.||yes In-memory storage engine introduced with MongoDB version 3.2||no|
|User concepts Access control||Access rights for users and roles||fine grained access rights according to SQL-standard|
|More information provided by the system vendor|
|MongoDB||PostgreSQL||XTDB formerly named Crux|
|Specific characteristics||MongoDB provides an integrated suite of cloud database and data services to accelerate...|
|Competitive advantages||Built around the flexible document data model and unified API, MongoDB is a developer...|
|Typical application scenarios||AI-enriched intelligent apps (Continental, Telefonica, Iron Mountain) Internet of...|
|Key customers||ADP, Adobe, Amadeus, AstraZeneca, Auto Trader, Barclays, BBVA, Bosch, Cisco, CERN,...|
|Market metrics||Hundreds of millions downloads, over 150,000+ Atlas clusters provisioned every month...|
|Licensing and pricing models||MongoDB database server: Server-Side Public License (SSPL) . Commercial licenses...|
We invite representatives of system vendors to contact us for updating and extending the system information,
|Related products and services|
|3rd parties||Studio 3T: The world's favorite IDE for working with MongoDB|
Navicat for MongoDB gives you a highly effective GUI interface for MongoDB database management, administration and development.
CData: Connect to Big Data & NoSQL through standard Drivers.
|Datasentinel: Platform for Monitoring and Analyzing the performance problems of your PostgreSQL Clusters|
Aiven for PostgreSQL: Fully managed PostgreSQL for developers with 70+ extensions and flexible orchestration tools.
Navicat Monitor is a safe, simple and agentless remote server monitoring tool for PostgreSQL and many other database management systems.
Instaclustr: Fully Hosted & Managed PostgreSQL
pgDash: In-Depth PostgreSQL Monitoring.
Redgate webinars: A series of key topics for new PostgreSQL users.
Timescale: Calling all PostgreSQL users – the 2023 State of PostgreSQL survey is now open! Share your favorite extensions, preferred frameworks, community experiences, and more. Take the survey today!
Fujitsu Enterprise Postgres: An Enterprise Grade PostgreSQL with the flexibility of a hybrid cloud solution combined with industry leading security, availability and performance.
Navicat for PostgreSQL is an easy-to-use graphical tool for PostgreSQL database development.
We invite representatives of vendors of related products to contact us for presenting information about their offerings here.
|MongoDB||PostgreSQL||XTDB formerly named Crux|
|DB-Engines blog posts|
Snowflake is the DBMS of the Year 2021
Snowflake is the DBMS of the Year 2022, defending the title from last year
|Recent citations in the news|
MDB Stock Falls Despite Strong Earnings From MongoDB
MongoDB, Inc. (NASDAQ:MDB) Q3 2024 Earnings Call Transcript
Why MongoDB Stock Dropped Today
MongoDB earnings clear Wall Street’s bar, but stock falls
MongoDB crushes Wall Street's targets, but its stock falls after-hours
provided by Google News
OCI Database: Oracle Embraces PostgreSQL
Data Flow Tutorial With Mage.ai | Part 4: PostgreSQL Database - Technical Articles
Meet PGXMAN : The PostgreSQL Extension Manager
VMware and Google Cloud Announce Planned PostgreSQL-Compatible Database Solution for Traditional and ...
PostgreSQL Takes a New Turn
provided by Google News
MongoDB with Azure Engineer
MongoDB Data Engineer
Remote Junior Backend Developer
Senior Vertica DBA
Sr PostgreSQL DBA
Full Stack Developer
Share this page