Comparison_of_relational_database_management_systems

Comparison of relational database management systems

Comparison of relational database management systems

Add article description


The following tables compare general and technical information for a number of relational database management systems. Please see the individual products' articles for further information. Unless otherwise specified in footnotes, comparisons are based on the stable versions without any add-ons, extensions or external programs.

General information

More information Maintainer, First public release date ...

Operating system support

The operating systems that the RDBMSes can run on.

More information Windows, macOS ...

Fundamental features

Information about what fundamental RDBMS features are implemented natively.

More information Database Name, ACID ...
  • Note (1): Currently only supports read uncommitted transaction isolation. Version 1.9 adds serializable isolation and version 2.0 will be fully ACID compliant.
  • Note (2): MariaDB and MySQL provide ACID compliance through the default InnoDB storage engine.[71][72]
  • Note (3): "For other than InnoDB storage engines, MySQL Server parses and ignores the FOREIGN KEY and REFERENCES syntax in CREATE TABLE statements. The CHECK clause is parsed but ignored by all storage engines."[73]
  • Note (4): Support for Unicode is new in version 10.0.
  • Note (5): MySQL provides GUI interface through MySQL Workbench.
  • Note (6): OpenEdge SQL database engine uses Referential Integrity, OpenEdge ABL Database engine does not and is handled via database triggers.

Limits

Information about data size limits.

More information Max DB size, Max table size ...
  • Note (1): Firebird 2.x maximum database size is effectively unlimited with the largest known database size >980 GB.[79] Firebird 1.5.x maximum database size: 32 TB.
  • Note (2): Limit is 1038 using DECIMAL datatype.[80]
  • Note (3): InnoDB is limited to 8,000 bytes (excluding VARBINARY, VARCHAR, BLOB, or TEXT columns).[81]
  • Note (4): InnoDB is limited to 1,017 columns.[81]
  • Note (6): Using VARCHAR (MAX) in SQL 2005 and later.[82]
  • Note (7): When using a page size of 32 KB, and when BLOB/CLOB data is stored in the database file.
  • Note (8): Java array size limit of 2,147,483,648 (231) objects per array applies. This limit applies to number of characters in names, rows per table, columns per table, and characters per CHAR/VARCHAR.
  • Note (9): Despite the lack of a date datatype, SQLite does include date and time functions,[83] which work for timestamps between 24 November 4714 B.C. and 1 November 5352.
  • Note (10): Informix DATETIME type has adjustable range from YEAR only through 1/10000th second. DATETIME date range is 0001-01-01 00:00:00.00000 through 9999-12-31 23:59:59.99999.
  • Note (11): Since version 12c. Earlier versions support up to 4000 B.
  • Note (12): The 128 PB limit refers to the storage limit of a single Informix server instance. Informix v12.10 and later versions support using sharding techniques to distribute a table across multiple server instances. A distributed Informix database has no upper limit on table or database size.
  • Note (13): Informix DECIMAL type supports up to 32 decimal digits of precision with a range of 10−130 to 10125. Fixed and variable precision are supported.

Tables and views

Information about what tables and views (other than basic ones) are supported natively.

More information Temporary table, Materialized view ...

Note (1): Server provides tempdb, which can be used for public and private (for the session) temp tables.[84]

Note (2): Materialized views are not supported in Informix; the term is used in IBM's documentation to refer to a temporary table created to run the view's query when it is too complex, but one cannot for example define the way it is refreshed or build an index on it. The term is defined in the Informix Performance Guide.[85]

Note (4): Materialized views can be emulated using stored procedures and triggers.[86]

Indexes

Information about what indexes (other than basic B-/B+ tree indexes) are supported natively.

More information R-/R+ tree, Hash ...

Note (1): The users need to use a function from freeAdhocUDF library or similar.[121]

Note (2): Can be implemented for most data types using expression-based indexes.

Note (3): Can be emulated by indexing a computed column[122] (doesn't easily update) or by using an "Indexed View"[123] (proper name not just any view works[124]).

Note (4): Used for InMemory ColumnStore index, temporary hash index for hash join, Non/Cluster & fill factor.

Note (5): InnoDB automatically generates adaptive hash index[125] entries as needed.

Note (6): Can be implemented using Function-based Indexes in Oracle 8i and higher, but the function needs to be used in the sql for the index to be used.

Note (7): A PostgreSQL functional index can be used to reverse the order of a field.

Note (10): B+ tree and full-text only for now.

Note (11): R-Tree indexing available in base edition with Locator but some functionality requires Personal Edition or Enterprise Edition with Spatial option.

Database capabilities

More information Union, Intersect ...

Note (1): Recursive CTEs introduced in 11gR2 supersedes similar construct called CONNECT BY.

Data types

More information Type system, Integer ...

Other objects

Information about what other objects are supported natively.

More information Data Domain, Cursor ...

Note (1): Both function and procedure refer to internal routines written in SQL and/or procedural language like PL/SQL. External routine refers to the one written in the host languages, such as C, Java, Cobol, etc. "Stored procedure" is a commonly used term for these routine types. However, its definition varies between different database vendors.

Note (2): In Derby, H2, LucidDB, and CUBRID, users code functions and procedures in Java.

Note (3): ENUM datatype exists. CHECK clause is parsed, but not enforced in runtime.

Note (5): Informix supports external functions written in Java, C, & C++.

Partitioning

Information about what partitioning methods are supported natively.

More information Range, Hash ...

Access control

Information about access control functionalities.

More information Native network encryption1, Brute-force protection ...

Note (1): Network traffic could be transmitted in a secure way (not clear-text, in general SSL encryption). Precise if option is default, included option or an extra modules to buy.

Note (2): Options are present to set a minimum size for password, respect complexity like presence of numbers or special characters.

Note (3): How do you get security updates? Is it free access, do you need a login or to pay? Is there easy access through a Web/FTP portal or RSS feed or only through offline access (mail CD-ROM, phone).

Note (4): Does database process run as root/administrator or unprivileged user? What is default configuration?

Note (5): Is there a separate user to manage special operation like backup (only dump/restore permissions), security officer (audit), administrator (add user/create database), etc.? Is it default or optional?

Note (6): Common Criteria certified product list.[179]

Note (7): FirebirdSQL seems to only have SYSDBA user and DB owner. There are no separate roles for backup operator and security administrator.

Note (8): User can define a dedicated backup user but nothing particular in default install.[180]

Note (9): Authentication methods.[181]

Note (10): Informix Dynamic Server supports PAM and other configurable authentication. By default uses OS authentication.

Note (11): Authentication methods.[182]

Note (12): With the use of Pervasive AuditMaster.

Note (13): User-based security is optional in Polyhedra, but when enabled can be enhanced to a role-based model with auditing.[183]

Databases vs schemas (terminology)

The SQL specification defines what an "SQL schema" is; however, databases implement it differently. To compound this confusion the functionality can overlap with that of a parent database. An SQL schema is simply a namespace within a database; things within this namespace are addressed using the member operator dot ".". This seems to be a universal among all of the implementations.

A true fully (database, schema, and table) qualified query is exemplified as such: SELECT * FROM database.schema.table

Both a schema and a database can be used to isolate one table, "foo", from another like-named table "foo". The following is pseudo code:

  • SELECT * FROM database1.foo vs. SELECT * FROM database2.foo (no explicit schema between database and table)
  • SELECT * FROM [database1.]default.foo vs. SELECT * FROM [database1.]alternate.foo (no explicit database prefix)

The problem that arises is that former MySQL users will create multiple databases for one project. In this context, MySQL databases are analogous in function to PostgreSQL-schemas, insomuch as PostgreSQL deliberately lacks off-the-shelf cross-database functionality (preferring multi-tenancy) that MySQL has. Conversely, PostgreSQL has applied more of the specification implementing cross-table, cross-schema, and then left room for future cross-database functionality.

MySQL aliases schema with database behind the scenes, such that CREATE SCHEMA and CREATE DATABASE are analogs. It can therefore be said that MySQL has implemented cross-database functionality, skipped schema functionality entirely, and provided similar functionality into their implementation of a database. In summary, PostgreSQL fully supports schemas and multi-tenancy by strictly separating databases from each other and thus lacks some functionality MySQL has with databases, while MySQL does not even attempt to support standard schemas.

Oracle has its own spin where creating a user is synonymous with creating a schema. Thus a database administrator can create a user called PROJECT and then create a table PROJECT.TABLE. Users can exist without schema objects, but an object is always associated with an owner (though that owner may not have privileges to connect to the database). With the 'shared-everything' Oracle RAC architecture, the same database can be opened by multiple servers concurrently. This is independent of replication, which can also be used, whereby the data is copied for use by different servers. In the Oracle implementation, a 'database' is a set of files which contains the data while the 'instance' is a set of processes (and memory) through which a database is accessed.

Informix supports multiple databases in a server instance like MySQL. It supports the CREATE SCHEMA syntax as a way to group DDL statements into a single unit creating all objects created as a part of the schema as a single owner. Informix supports a database mode called ANSI mode which supports creating objects with the same name but owned by different users.

PostgreSQL and some other databases have support for foreign schemas, which is the ability to import schemas from other servers as defined in ISO/IEC 9075-9 (published as part of SQL:2008). This appears like any other schema in the database according to the SQL specification while accessing data stored either in a different database or a different server instance. The import can be made either as an entire foreign schema or merely certain tables belonging to that foreign schema.[184] While support for ISO/IEC 9075-9 bridges the gap between the two competing philosophies surrounding schemas, MySQL and Informix maintain an implicit association between databases while ISO/IEC 9075-9 requires that any such linkages be explicit in nature.

See also


References

  1. "Product Release Life Cycle". 10 January 2020.
  2. "Apache Derby: Downloads". Retrieved 2024-03-18.
  3. Stevens, O. (Oct–Dec 2009). "The History of Datacom/DB". Annals of the History of Computing. 31 (4). IEEE: 87–91. doi:10.1109/MAHC.2009.108. ISSN 1058-6180. S2CID 16803811.
  4. "CA Datacom - CA Technologies". Archived from the original on 2016-02-14. Retrieved 2014-07-06.
  5. "Db2 Documentation". Retrieved 15 November 2023.
  6. "Firebird 5.0.0". 11 January 2024. Retrieved 14 January 2024.
  7. IPL, Firebird SQL
  8. IDPL, Firebird SQL
  9. MonetDB License MPL2.0, MonetDB B.V., 8 February 2022
  10. mSQL, Products, AU: Hughes, archived from the original on 2009-10-15, retrieved 2009-09-13
  11. "Changes in MySQL 8.3.0 (2024-01-16, Innovation Release)". 16 January 2024. Retrieved 16 January 2024.
  12. "PostgreSQL 16.1, 15.5, 14.10, 13.13, 12.17, and 11.22 Released!". PostgreSQL. The PostgreSQL Global Development Group. 2023-11-09. Retrieved 2023-11-29.
  13. "SQLite Release 3.45.3 On 2024-04-15". 15 April 2024. Retrieved 15 April 2024.
  14. "Release 7.6.0". 25 January 2024. Retrieved 20 February 2024.
  15. "Building MariaDB on Mac OS X using Homebrew". AskMonty KnowledgeBase. Archived from the original on October 20, 2011. Retrieved September 30, 2011.
  16. http://techotv.com/run-apache-mysql-php-http-web-server-android-os-phone-tablet/ Run Apache, Mysql, Php – Web server on Android mobile or Tablet
  17. "PostgreSQL - Oss4zos". Archived from the original on 2015-05-27. Retrieved 2013-08-15.
  18. "Identifier Names". MariaDB KnowledgeBase. Retrieved 26 September 2014.
  19. "PostgreSQL Limits". Retrieved 2021-05-13.
  20. "Large Objects: Introduction". Retrieved 2021-05-13.
  21. "Date/Time Types". Retrieved 2021-05-13.
  22. Technical Specifications, Guide, Firebird SQL, archived from the original on 2010-06-15, retrieved 2008-03-30
  23. Library, MSDN, Microsoft
  24. "Column count limit", Reference Manual, MySQL 5.1 Documentation, Oracle
  25. "Row-Overflow Considerations", TechNet Library, SQL Server Documentation, Microsoft, 2012
  26. "Date functions", Language, SQLite
  27. Online books, Sybase, archived from the original on 2005-10-23
  28. Dynamic Materialized Views in MySQL, Pure, Red Noize, 2005, archived from the original on 2006-04-23
  29. "Derby", Full Text Indexing, Search, Issues, Apache
  30. "CUBRID 9.0 release". Archived from the original on 2013-02-14. Retrieved 2013-02-05.
  31. Fulltext Search, Tutorial, H2 Database
  32. Create Spatial Index, Grammar, H2 Database
  33. Forest of Trees Index, Informix Infocenter, IBM, 20 July 2022
  34. Full Text Search Functions (PDF), Documentation, RU: Linter, archived from the original (PDF) on 2011-08-20, retrieved 2010-06-06
  35. SPATIAL INDEX, MariaDB, mariadb.com, retrieved 24 September 2017
  36. "Storage Engine Index Types". mariadb.com. Retrieved 25 April 2016.
  37. "Fulltext Index Overview". mariadb.com. Retrieved 25 April 2016.
  38. "Spatial Indexing Overview", Library, Tech Net, Microsoft
  39. Index Types Per Storage Engine, MySQL, Oracle, retrieved 24 September 2017
  40. "MySQL v5.6.4 Release Notes", Release Notes, MySQL, Oracle
  41. "Location Features for Database 11g", Spatial & Locator, Tech Network, Oracle
  42. Index Types, Documentation, PostgreSQL community, 11 November 2021
  43. Full Text Search, Documentation, PostgreSQL community, 11 November 2021
  44. Building Spatial Indexes, PostGIS Manual, The PostGIS Development Group
  45. SpatiaLite, IT: Gaia GIS 2.3.1, archived from the original on 2011-07-22, retrieved 2010-12-06
  46. Full-Text Search, Online Publications, Teradata
  47. UDF, Ad Hoc Data, archived from the original on 2019-09-14, retrieved 2007-01-11
  48. "Create DB", Library, MSDN, Microsoft
  49. "SQL", Library, MSDN, Microsoft
  50. Petkovic, Dusan (2005). Microsoft SQL Server 2005: A Beginner's Guide. McGraw-Hill Professional. p. 300. ISBN 978-0-07-226093-9.
  51. "InnoDB adaptive Hash", Reference manual 5.0, Development documentation, Oracle
  52. "Article", Library, Developer Works, IBM
  53. "INTERSECT". mariadb.com.
  54. "EXCEPT". mariadb.com.
  55. "CTE implemented in 10.2.2". mariadb.org. Retrieved 26 July 2017.
  56. "Window Functions Overview". mariadb.com. Retrieved 25 April 2016.
  57. Window Functions, mysql.com, retrieved 20 July 2021
  58. Parallel Query, Wiki, Ora FAQ
  59. "New Features Oracle 12.1.0.1". Archived from the original on 2020-10-25.
  60. Parallel Query, PostgreSQL, 11 August 2022
  61. "Data Types", General Reference, HDB, Altibase
  62. "10. Data Types", Reference manual, MySQL 5.0, Oracle
  63. "Data Types", CUBRID SQL Guide, Reference Manual, CUBRID[permanent dead link]
  64. "FileMaker 14 Tech Specs". FileMaker=May 12, 2015.
  65. "Migration from MS-SQL to Firebird". Firebird Project. Retrieved April 12, 2015.
  66. "General: HSQLDB data types", Guide, 2.0 Documents, HSQLDB
  67. "IBM Informix Guide to SQL: Reference, v11.50 (SC23-7750-04)". Publications. IBM. Retrieved August 7, 2013.
  68. "3: Understanding SQL Data Types", SQL 9.3 Reference Guide, Documents, Ingres
  69. "Data Types". mariadb.com. Retrieved 25 April 2016.
  70. "SQL Server Data Types", Library, MSDN, Microsoft
  71. "SQL Server Compact Data Types", Library, MSDN, Microsoft
  72. "Datatypes", SQL Reference, OpenLink Software
  73. "Data Types", SQL 11.2 Reference, Server documents, Oracle, archived from the original on 2010-03-14, retrieved 2009-09-21
  74. "Data Types", Pervasive PSQL Supported Data Types, Product documentation, Pervasive
  75. Polyhedra SQL Reference Manual, Product documentation, Enea AB, archived from the original on 2013-10-04, retrieved 2013-04-23
  76. "Data Types", Manual, PostgreSQL 10 Documentation, PostgreSQL community, 11 August 2022
  77. Datatypes, SQLite 3
  78. SQream SQL Reference Guide, SQream Technologies
  79. "CONSTRAINT". mariadb.com.
  80. Support, Downloads, Sybase, retrieved 2008-09-07[dead link]
  81. "Release", Engine, Development, Firebird SQL 2.0
  82. Files, Firebird SQL
  83. "Trace and Audit Services". Firebird Project. Retrieved April 12, 2015.
  84. "cracklib_password_check". mariadb.com. Retrieved 9 December 2014.
  85. "simple_password_check". mariadb.com. Retrieved 9 December 2014.
  86. "Security Vulnerabilities Fixed in MariaDB". mariadb.com. Retrieved 25 April 2016.
  87. "Downloads", Development, MySQL, Oracle
  88. Security, Support, PostgreSQL community, archived from the original on 2011-11-01, retrieved 2018-03-05
  89. DB, Products, Common Criteria Portal, retrieved 2021-05-13
  90. Backup MySQL, How to, Gentoo wiki, archived from the original on 2008-09-02, retrieved 2008-09-07
  91. Authentication methods, 8.1 Documents, PostgreSQL community, 24 July 2014
  92. Common Criteria (CC, ISO15408), Microsoft, archived from the original on 2014-02-13
  93. "PostgreSQL: Documentation: IMPORT FOREIGN SCHEMA". www.postgresql.org. Retrieved 2016-06-11.

Share this article:

This article uses material from the Wikipedia article Comparison_of_relational_database_management_systems, and is written by contributors. Text is available under a CC BY-SA 4.0 International License; additional terms may apply. Images, videos and audio are available under their respective licenses.