Software:Firebird (database server)

From HandWiki
Short description: Relational database management system
Firebird
Screenshot
Turbobird screenshot.png
Original author(s)Borland
Developer(s)Firebird Foundation
Initial release2000 (2000)
Stable release
Preview release
Firebird 5.0 Release Candidate 1 / 26.09.2023
Written inC++, C
Operating systemCross-platform
PlatformIA-32, x86-64
TypeRDBMS
LicenseIPL, IDPL
Website{{{1}}}

Firebird is an open-source SQL relational database management system that supports Linux, Microsoft Windows, macOS and other Unix platforms.[1] The database forked from Borland's open source edition of InterBase in 2000 but the code has been largely rewritten since Firebird 1.5.[2]

History

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

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

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

Firebird 2.5 introduced new features like improved multithreading, regular expression syntax and the ability to query remote databases.[14]

The most recent stable version is Firebird 3.0, released 19 April 2016, with focus in performance and security. A major re-architecture of the code allowed total support to SMP machines when using the SuperServer version.[15]

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

Mozilla Firefox name conflict

In April 2003, the Mozilla Organization announced a rename of its web browser from Phoenix to Firebird after a trademark dispute with Phoenix Technologies.[18]

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][20] The Mozilla developers issued a statement,[21] making clear that their software package was called "Mozilla Firebird", not "Firebird".[22][23] The statement also said that the Mozilla Firebird name was a project codename.

The dispute was resolved on 9 February 2004, when Mozilla changed the name of its browser to Mozilla Firefox, thus ending the conflict.[24][25][26]

Main features

  • Full support for stored procedures and triggers[27]
  • Full ACID compliant transactions
  • Referential integrity
  • Multi Generational Architecture (sometimes called MVCC)[28]
  • 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[29] drivers, ODBC, OLE DB, .NET provider, JDBC native type 4 driver, Python module,[30] 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.[31] As a result, Firebird disk writes are very reduced compared to databases that use the traditional transaction log architecture.[32] Writing transactions does not prevent reading and vice versa, because each one sees its own version of the database.[33] The tradeoff is that some maintenance ("sweeping") is required from time to time to clean up old record versions and free disk space.[34]

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.[35]

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.[36]

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.[37]

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.[38]

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.[39]

Awards

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

See also

References

  1. "Firebird: A powerful, cross platform, SQL database system". SourceForge Media, LLC. 25 April 2018. https://sourceforge.net/projects/firebird/. 
  2. "Firebird 1.5.5 Release Notes". http://firebirdsql.org/rlsnotesh/rlsnotes15.html#intro-gen-notes.  Firebird 1.5.5 General Notes for rewriting it from C to C++ language
  3. "Inprise/Borland Introduces InterBase 6.0 Now Free and Open Source on Linux, Windows, and Solaris". 16 July 2000. http://www.borland.com/news/press_releases/2000/07_16_00_ib6.html. 
  4. "Borland.com: Inprise/Borland Introduces Interbase 6.0 Now Free and Open Source on Linux". Linux Today. http://www.linuxtoday.com/news_story.php3?ltsn=2000-07-25-004-06-PR-SV-SW. 
  5. "Firebird History". http://www.firebirdsql.org/en/historical-reference/. 
  6. Paul Reeves. "What's happening to InterBase". Borland User Group. pp. 2. http://www.ibphoenix.com/resources/documents/search/doc_14. 
  7. "IBPhoenix Community News Archive". 11 March 2000. http://wwwnfs.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_old_news&next=Y&skip=2029. [yes|permanent dead link|dead link}}]
  8. "IBPhoenix Community News Archive". 11 April 2000. http://wwwnfs.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_old_news&next=Y&skip=2015. [yes|permanent dead link|dead link}}]
  9. "Firebird Relational Database 1.5 Final Out". Slashdot. 23 February 2004. http://developers.slashdot.org/article.pl?sid=04/02/23/201230. 
  10. Helen Borrie (5 October 2009). "Firebird 1.5.6 Release Notes". Firebird Project. http://www.firebirdsql.org/rlsnotesh/rlsnotes15.html. 
  11. Dmitry Yemanov. "Firebird 2.0 Final Release Launches in Prague". http://www.firebirdsql.org/index.php?op=devjournal&id=djarchive&no_rss=1#00022.jnl. 
  12. Helen Borrie (5 April 2012). "Firebird 2.0.7 Release Notes". http://www.firebirdsql.org/rlsnotesh/rlsnotes207.html. 
  13. Helen Borrie (20 July 2014). "Firebird 2.1 Release Notes". http://firebirdsql.org/rlsnotesh/rlsnotes210.html#rnfb210-new-feat. 
  14. Helen Borrie (19 November 2015). "Firebird 2.5.5 Release Notes". http://www.firebirdsql.org/file/documentation/release_notes/html/rlsnotes255.html. 
  15. Gray, James (2016-07-29). "The Firebird Project's Firebird Relational Database | Linux Journal". Linux Journal. https://www.linuxjournal.com/content/firebird-projects-firebird-relational-database. 
  16. mariuz (14 February 2012). "Firebird Embedded and LibreOffice is the killer combination to scale from a single file application to a client/server approach". Firebirdnews.org. http://www.firebirdnews.org/?p=6610. 
  17. ahunt (28 May 2013). "GSOC 2013: LibreOffice Firebird SQL Connector". http://www.ahunt.org/2013/05/gsoc-2013-libreoffice-firebird-sql-connector/. 
  18. Dotzler, Asa (14 April 2003). "Phoenix and Minotaur to be renamed Firebird and Thunderbird". http://www.mozillazine.org/talkback.html?article=3075. 
  19. Mozilla browser becomes Firebird, IBPhoenix, http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_Mozilla0, retrieved 2016-01-29 
  20. Bishop, Alex (21 April 2003). "Firebird Database Project Admin Ann Harrison Interviewed". http://www.mozillazine.org/articles/article3097.html. 
  21. "mozilla branding". The Mozilla Organization. 25 April 2003. https://www.mozilla.org/roadmap/branding.html. 
  22. Festa, Paul (7 May 2003). "Mozilla's Firebird gets wings clipped". CBS Interactive. http://www.cnet.com/news/mozillas-firebird-gets-wings-clipped/. 
  23. Bishop, Alex (14 May 2003). "Christopher Blizzard of mozilla.org speaks on the Firebird naming conflict". http://www.mozillazine.org/articles/article3169.html. 
  24. Paul Festa (9 February 2004). "Mozilla holds 'fire' in naming fight". CNET. CBS Interactive. http://www.cnet.com/news/mozilla-holds-fire-in-naming-fight/. 
  25. "Mozilla Firebird Renamed Firefox, Version 0.8 Released". 9 February 2004. http://www.mozillazine.org/talkback.html?article=4278. 
  26. "Mozilla Firefox - Brand Name Frequently Asked Questions". Mozilla Foundation. https://www-archive.mozilla.org/projects/firefox/firefox-name-faq.html. 
  27. "Get to know Firebird in 2 minutes". http://www.firebirdnews.org/docs/fb2min.html. 
  28. Roman Rokytskyy. "A not-so-very technical discussion of Multi Version Concurrency Control". http://www.firebirdsql.org/en/multi-version-concurrency-control/. 
  29. "Connect to Firebird (FireDAC)". http://docwiki.embarcadero.com/RADStudio/XE5/en/Connect_to_Firebird_(FireDAC). FireDAC
  30. "FDB: The Python driver for Firebird". https://pypi.python.org/pypi/fdb/. 
  31. "Multi-generational architecture (MGA) and record versioning". HK-Software. http://www.ibexpert.info/ibe/index.php?n=Doc.Multi-generationalArchitectureMGAAndRecordVersioning. 
  32. "Interview with Jim Starkey from InterBase World". Marina Novikova, InterBase World. http://www.ibphoenix.com/resources/documents/community/doc_296. 
  33. "What is Multi Generational Architecture (MGA)?". The Firebird FAQ. http://www.firebirdfaq.org/faq44/. 
  34. "Database Housekeeping And Garbage Collection". The Firebird Project. http://www.firebirdsql.org/manual/gfix-housekeeping.html. 
  35. "What is Multi Generational Architecture (MGA)?". The Firebird FAQ. http://www.firebirdfaq.org/faq44/. 
  36. "Interview with Jim Starkey from InterBase World". Marina Novikova, InterBase World. http://www.ibphoenix.com/resources/documents/community/doc_296. 
  37. "Firebird: Initial Developer's Public License Version 1.0". Firebird Project. http://www.firebirdsql.org/en/initial-developer-s-public-license-version-1-0/. 
  38. "The Firebird client library". The Firebird Project. http://www.firebirdsql.org/manual/ufb-cs-clientlib.html. 
  39. "Application development". The Firebird Project. http://www.firebirdsql.org/manual/ufb-cs-appdev.html. 
  40. "SourceForge.net 2007 Community Choice Awards Winners". SourceForge.net. 15 June 2007. http://sourceforge.net/blog/cca07/. 
  41. "SourceForge.net: 2009 CCA: Winners". SourceForge.net. 28 July 2009. http://sourceforge.net/blog/cca09/winners/. 

External links