Firebird (database server)

From Infogalactic: the planetary knowledge core
Jump to: navigation, search
Firebird
120px
300px
Developer(s) Firebird Project
Initial release 2000
Stable release 2.5.5 / 19 November 2015; 8 years ago (2015-11-19) [1]
Preview release 3.0 Release Candidate 1 / November 9, 2015; 8 years ago (2015-11-09)[2]
Written in C++
Operating system Cross-platform
Type RDBMS
License IPL, IDPL
Website www.firebirdsql.org

Lua error in package.lua at line 80: module 'strict' not found.

Firebird is an open source SQL relational database management system that runs on Linux, Microsoft Windows, Mac OS X and a variety of Unix. The database forked from Borland's open source edition of InterBase in 2000, but since Firebird 1.5 the code has been largely rewritten.[3]

History

Within a week of the InterBase 6.0 source being released by Borland on 25 July 2000,[4][5] the Firebird project was created on SourceForge.[6][7] Firebird 1.0 was released for Linux, Microsoft Windows and Mac OS X on 11 March 2002,[8] with ports to Solaris, FreeBSD 4, HP-UX following over the next two months.[9]

Work on porting the codebase from C to C++ began in 2000. On 23 February 2004, Firebird 1.5 was released,[10] which was the first stable release of the new codebase. Version 1.5 featured an improved query optimizer, SQL-92 conditional expressions, SQL:1999 savepoints and support for explicit locking.[11] Firebird 2.0 was released on 12 November 2006,[12] adding support for 64-bit architectures, tables nested in FROM clauses, and programmable lock timeouts in blocking transactions.[13]

The previous stable release was version 2.1.6, which added new features including procedural triggers, recursive queries, and support for SQL:2003 MERGE statements.[14]

Firebird 2.5.5 is the current stable version. New features included improved multithreading, regular expression syntax and the ability to query remote databases.[15]

Through the Google Summer of Code 2013 work has begun on integrating Firebird as an replacement for HSQLDB in LibreOffice.[16][17]

The planned 3.0 release is expected to support stored procedures in languages such as Java and C++, and SQL window functions that restrict query results. A first Beta version was released in November 2014.[18]

Mozilla Firefox name conflict

In April 2003, the Mozilla Foundation decided to rename its web browser from Phoenix to Firebird after a trademark dispute with Phoenix Technologies.[citation needed] This decision caused concern within the Firebird database project due to the assumption that users and Internet search engines would be confused by a database and a web browser both using the name Firebird.[19] The dispute continued until the Mozilla developers issued a statement making clear that their software package was called "Mozilla Firebird", not "Firebird". The statement also said that the Mozilla Firebird name was a project codename. On 9 February 2004, Mozilla renamed its browser Mozilla Firefox, thus ending the conflict.[20]

Main features

  • Full support for stored procedures and triggers[21]
  • Full ACID compliant transactions
  • Referential integrity
  • Multi Generational Architecture (sometimes called MVCC)[22]
  • Support for External Functions (UDFs)
  • SQL activity can send asynchronous notification events to clients
  • Third-party tools, including GUI administrative tools and replication tools
  • Careful writes - fast recovery, no need for transaction logs
  • Many access methods: native/API, dbExpress/FireDAC[23] drivers, ODBC, OLE DB, .NET provider, JDBC native type 4 driver, Python module, PHP, Perl
  • Incremental backups
  • Full cursor implementation in PSQL

Storage and index technology

The Multi-Generational Architecture (MGA)

Firebird inherited the storage architecture of Interbase. To ensure the ACID properties of transactions, the database engine keeps different versions of each record changed by the active users in the database. When the transactions are committed, the last version of every changed record is marked as the definitive. If transactions are rolled back, the database engine keeps the mark on the original record versions, leaving them untouched.[24] As a result, Firebird disk writes are very reduced compared to databases that use the traditional transaction log architecture.[25] Writing transactions does not prevent reading and vice versa, because each one sees its own version of the database.[26] The tradeoff is that some maintenance (“sweeping”) is required from time to time to clean up old record versions and free disk space.[27]

The multi-generational architecture ensures that OLTP and DSS/OLAP operations can be run simultaneously without the delays caused by locking mechanisms found in other products.[28]

Indexes

Firebird makes all indices of the database behave like well-tuned “clustered indexes” used by other architectures. Firebird index buckets aren’t subject to two-phase locking, and boolean “and” and “or” operations can be performed on intermediate bitmaps at a negligible cost, eliminating the need for the optimizer to choose between alternative indexes.[29]

Variants

  • Firebird SuperServer has a single daemon/server for all client connections, multithreaded with shared cache
  • Firebird SuperClassic also has a single daemon/server for all client connections, multithreaded with separate caches
  • Firebird Classic uses inetd to run one copy of the server per client connection, recommended for SMP systems but might have event-notification issues if access is via a firewall
  • Firebird Embedded for creating CD-ROM catalogs, single user or evaluation versions of applications

Licensing

The Firebird database engine and its modules are released under an open-source license, the Initial Developer's Public License (IDPL), a variant of the Mozilla Public License (MPL) version 1.1. It does not require the developer to open the products using Firebird or even custom-derivatives made from its source code, but if the developer chooses to do so, then some terms and conditions should be honored. The IDPL allows the developer to make proprietary, closed-source applications that use Firebird or are based on it.[30]

Connectivity APIs

Low-level Firebird Native API, Services API and embedded SQL

The Firebird native API is used directly or indirectly by applications or middleware that connect to a Firebird database. It is implemented in the client library, fbclient.dll, on Windows systems, and in libfbclient.so on Unix ones. [31]

The Services API is a special function set for accessing and controlling service administration tasks such as user management, backup/restore and statistics gathering.

Embedded SQL is a technique that simplifies the development of C/C++ and COBOL Firebird applications, by using a preprocessor called gpre, which allows the embedding of SQL statements directly into the source code of the host language.[32]


Awards

  • 2007. SourceForge Community Choice Award: Best Project for enterprise, Best user support.[33]
  • 2009. SourceForge Community Choice Award: Best Project for enterprise. Finalist on Best Project and Best Project for Government.[34]

See also

References

  1. Lua error in package.lua at line 80: module 'strict' not found.
  2. Lua error in package.lua at line 80: module 'strict' not found.
  3. Lua error in package.lua at line 80: module 'strict' not found. Firebird 1.5.5 General Notes for rewriting it from C to C++ language
  4. Lua error in package.lua at line 80: module 'strict' not found.
  5. Lua error in package.lua at line 80: module 'strict' not found.
  6. Lua error in package.lua at line 80: module 'strict' not found.
  7. Lua error in package.lua at line 80: module 'strict' not found.
  8. Lua error in package.lua at line 80: module 'strict' not found.
  9. Lua error in package.lua at line 80: module 'strict' not found.
  10. Lua error in package.lua at line 80: module 'strict' not found.
  11. Lua error in package.lua at line 80: module 'strict' not found.
  12. Lua error in package.lua at line 80: module 'strict' not found.
  13. Lua error in package.lua at line 80: module 'strict' not found.
  14. Lua error in package.lua at line 80: module 'strict' not found.
  15. Lua error in package.lua at line 80: module 'strict' not found.
  16. Lua error in package.lua at line 80: module 'strict' not found.
  17. Lua error in package.lua at line 80: module 'strict' not found.
  18. Lua error in package.lua at line 80: module 'strict' not found.
  19. Lua error in package.lua at line 80: module 'strict' not found.
  20. Lua error in package.lua at line 80: module 'strict' not found.
  21. Lua error in package.lua at line 80: module 'strict' not found.
  22. Lua error in package.lua at line 80: module 'strict' not found.
  23. Lua error in package.lua at line 80: module 'strict' not found.FireDAC
  24. Lua error in package.lua at line 80: module 'strict' not found.
  25. Lua error in package.lua at line 80: module 'strict' not found.
  26. Lua error in package.lua at line 80: module 'strict' not found.
  27. Lua error in package.lua at line 80: module 'strict' not found.
  28. Lua error in package.lua at line 80: module 'strict' not found.
  29. Lua error in package.lua at line 80: module 'strict' not found.
  30. Lua error in package.lua at line 80: module 'strict' not found.
  31. Lua error in package.lua at line 80: module 'strict' not found.
  32. Lua error in package.lua at line 80: module 'strict' not found.
  33. Lua error in package.lua at line 80: module 'strict' not found.
  34. Lua error in package.lua at line 80: module 'strict' not found.

External links