Information about Postgresql

PostgreSQL
Enlarge picture
PostgreSQL logo
Developer:PostgreSQL Global Development Group
Latest release:8.2.5 / September 17, 2007
OS:Cross-platform
Genre:ORDBMS
License:BSD
Website:www.postgresql.org


PostgreSQL is an object-relational database management system (ORDBMS). It is released under a BSD-style license and is thus free software. As with many other open-source programs, PostgreSQL is not controlled by any single company, but relies on a global community of developers and companies to develop it.

PostgreSQL's unusual-looking name makes some readers pause when trying to pronounce it, especially those who pronounce SQL as "sequel". PostgreSQL's developers pronounce it /poːst ɡɹɛs kjuː ɛl/; (Audio sample, 5.6k MP3). It is also common to hear it abbreviated as simply "postgres", which was its original name. Indeed, since support for the SQL standard is now ubiquitous amongst all relational databases, the community is considering changing the name back to Postgres. The name refers to the project's origins as a "post-Ingres" database, the original authors having also developed the Ingres database.

History

PostgreSQL has had a lengthy evolution, starting with the Ingres project at UC Berkeley. The project leader, Michael Stonebraker, had left Berkeley to commercialize Ingres in 1982, but eventually returned to academia. After returning to Berkeley in 1985, Stonebraker started a post-Ingres project to address the problems with contemporary database systems that had become increasingly clear during the early 1980s. While they share many of the same ideas, the code bases of PostgreSQL and Ingres started (and remain) completely separated.

The resulting project, named POSTGRES, aimed to introduce the minimum number of features needed to add complete support for types. These features included the ability to define types, as well as the ability to fully describe relationships – something used widely before this time but maintained entirely by the user. In POSTGRES the database "understood" relationships, and could retrieve information in related tables in a natural way using rules.

Starting in 1986 the team released a number of papers describing the basis of the system, and by 1988 the project had a prototype version up and running. The team released version 1 to a small number of users in June 1989, followed by version 2 with a re-written rules system in June 1990. 1991's version 3 re-wrote the rules system again, but also added support for multiple storage managers and for an improved query engine. By 1993 a huge number of users existed and began to overwhelm the project with requests for support and features. After releasing a Version 4 — primarily as a cleanup — the project ended.

Although the POSTGRES project had officially ended, the BSD license (under which Berkeley had released POSTGRES) enabled open-source developers to obtain copies and to develop the system further. In 1994 two UC Berkeley graduate students, Andrew Yu and Jolly Chen, added a SQL language interpreter to replace the earlier Ingres-based QUEL system, creating Postgres95. The code was subsequently released to the web to find its own way in the world.

In July 1996, Marc Fournier at Hub.Org Networking Services provided the first non-university development server for the open source development effort. Along with Bruce Momjian and Vadim B. Mikheev, work began to stabilize the code inherited from UC Berkeley, with the first open source version released on August 1st 1996.

1996 saw a re-naming of the project: in order to reflect the database's new SQL query language, Postgres95 became PostgreSQL. The first PostgreSQL release formed version 6.0 in January 1997. Since then, a group of database developers and volunteers from around the world, coordinating via the Internet, have maintained the software.

Although the license allowed for the commercialization of Postgres, the Postgres code did not develop commercially with the same rapidity as Ingres — somewhat surprisingly considering the advantages Postgres offered. The main offshoot originated when Paula Hawthorn (an original Ingres team member who moved from Ingres) and Michael Stonebraker formed Illustra Information Technologies to commercialize Postgres.

In 2000, former Red Hat investors put together a company known as Great Bridge to commercialize PostgreSQL and compete against commercial database vendors. Great Bridge sponsored several PostgreSQL developers and donated many resources back to the community,[1] however by late 2001 the company closed its doors citing tough competition from companies like Red Hat as well as poor market conditions.[2]

In 2001, Command Prompt, Inc. released Mammoth PostgreSQL, the oldest surviving commercial PostgreSQL distribution. They continue to actively support the PostgreSQL community through developer sponsorships and projects including PL/Perl, PL/php, and hosting of community projects such as the PostgreSQL Build Farm.

In January 2005, PostgreSQL received backing by another database vendor. Pervasive Software, well known for their Btrieve product which was ubiquitous on the Novell NetWare platform, announced commercial support & community participation. While they achieved success for a time, in July 2006, Pervasive left the PostgreSQL support market.[3]

In mid-2005 two other companies announced plans to commercialize PostgreSQL with focus on separate niche markets. EnterpriseDB announced plans to focus on adding functionality to allow applications written to work with Oracle to be more readily run atop PostgreSQL. Greenplum contributed enhancements directed at data warehouse and business intelligence applications, notably including the BizGres project.

In October 2005, John Loiacono, executive vice-president of software at Sun Microsystems, commented that "We're not going to OEM Microsoft but we are looking at PostgreSQL right now,"[4] although no specifics were released at that time. By November 2005, Sun Microsystems had announced support for PostgreSQL.[5] As of June 2006, Sun Solaris 10 6/06 ships PostgreSQL.

In August, 2007, EnterpriseDB announced[6] The Postgres Resource Center [1] and EnterpriseDB Postgres, designed to be a fully configured distribution of PostgreSQL including many contrib modules and add-on components.

As for the PostgreSQL project itself, it continues to make yearly major releases and minor "bugfix" releases, all available under the BSD license, based on contributions from both commercial vendors, support companies, and open source hackers at large.

Features

Functions

Functions allow blocks of code to be executed by the server. Although these blocks can be written in SQL, the lack of basic programming operations, such as branching and looping, has driven the adoption of other languages inside of functions. Some of the languages can even execute inside of triggers. Functions in PostgreSQL can be written in the following languages: PostgreSQL supports row-returning functions, where the output of the function is a set of values which can be treated much like a table within queries.

Functions can be defined to execute with the privileges of either the caller or the user who defined the function. Functions are sometimes referred to as stored procedures, although there is a slight technical distinction between the two.

Indices

User-defined index methods can be created, or the built-in B-tree, hash table and GiST indices can be used. Indexes in PostgreSQL also support the following features:
  • PostgreSQL is capable of scanning indexes backwards when needed; a separate index is never needed to support ORDER BY field DESC.
  • Expression indexes can be created with an index of the result of an expression or function, instead of simply the value of a column.
  • Partial indexes, which only index part of a table, can be created by adding a WHERE clause to the end of the CREATE INDEX statement. This allows a smaller index to be created.
  • Bitmap index scans are supported as of version 8.1. This involves reading multiple indexes and generating a bitmap that expresses their intersection with the tuples that match the selection criteria. This provides a way of composing indexes together; on a table with 20 columns, there are, in principle, 20! indexes that could be defined — which is far too many to actually use. If one index is created on each column, bitmap scans can compose arbitrary combinations of those indexes at query time for each column that seems worth considering as a constraint.

Triggers

Triggers are events triggered by the action of SQL query. For example, an INSERT query might activate a trigger that checked if the values of the query were valid. Most triggers are only activated by either INSERT or UPDATE queries.

Triggers are fully supported and can be attached to tables but not to views. Views can have rules, though. Multiple triggers are fired in alphabetical order. In addition to calling functions written in the native PL/PgSQL, triggers can also invoke functions written in other languages like PL/Perl.

MVCC

PostgreSQL manages concurrency through a system known as Multi-Version Concurrency Control (MVCC), which gives each user a "snapshot" of the database, allowing changes to be made without being visible to other users until a transaction is committed. This largely eliminates the need for read locks, and ensures the database maintains the ACID principles in an efficient manner.

Rules

Rules allow the "query tree" of an incoming query to be rewritten. One common usage is to implement updatable views.

Data types

A wide variety of native data types are supported, including: In addition, users can create their own data types which can usually be made fully indexable via PostgreSQL's GiST infrastructure.

Examples of these are the Geographic information system (GIS) data types from the PostGIS project for PostgreSQL.

User-defined objects

New types of almost all objects inside the database can be created, including:

Inheritance

Tables can be set to inherit their characteristics from a "parent" table. Data is shared between "parent" and "child(ren)" tables. Tuples inserted or deleted in the "child" table will respectively be inserted or deleted in the "parent" table. Also adding a column in the parent table will cause that column to appear in the child table as well. This feature is not fully supported yet—in particular, table constraints are not currently inheritable. This means that attempting to insert the id of a row from a child table into table that has a foreign key constraint referencing a parent table will fail because Postgres doesn't recognize that the id from the child table is also a valid id in the parent table.

Inheritance provides a way to map the features of generalization hierarchies depicted in Entity Relationship Diagrams (ERD) directly into the PostgreSQL database.

Other features

Add-ons

Benchmarks

Many informal performance studies of PostgreSQL have been done[7] but the first industry-standard and peer-validated benchmark was completed in June 2007 using the Sun Java Systems Application Server 9.0 Platform Edition, UltraSPARC T1 based Sun Fire server and Postgres 8.2[8]. This result of 778.14 SPECjAppServer2004 JOPS@Standard compares favourably with the 874 JOPS@Standard with Oracle 10 on an Itanium based HP-UX [7]

In August 2007, Sun submitted an improved benchmark score of 813.73 SPECjAppServer2004 JOPS@Standard. With the system under test at a reduced price, the price/performance improved from $US 84.98/JOPS to $US 70.57/JOPS. [10]

Prominent users

References

  • Matthew, Neil; Stones, Richard. Beginning Databases with PostgreSQL, Second Edition. ISBN 1-59059-478-9. 
  • Gilmore, W. Jason; Treat, Robert. Beginning PHP and PostgreSQL 8: From Novice to Professional. ISBN 1-59059-547-5. 
  • Worsley, John C.; Drake, Joshua D.. Practical PostgreSQL. ISBN 1-56592-846-6. 
  • Douglas, Korry. PostgreSQL. ISBN 0-672-32756-2. 

Notes

1. ^ Maya Tamiya (2001-01-10). Interview: Bruce Momjian. LWN.net. Retrieved on 2007-09-07.
2. ^ Great Bridge (2001-09-06). Great Bridge ceases operations. Press release. Retrieved on 2007-09-07.
3. ^ John Farr (2006-07-25). Open letter to the PostgreSQL Community. Pervasive Software. Retrieved on 2007-02-13.
4. ^ Rodney Gedda. "Sun's software chief eyes databases, groupware", Computerworld, 2005-10-05. Retrieved on 2007-02-13.Computerworld&rft.date=2005-10-05"> 
5. ^ Sun Microsystems (2005-11-17). Sun Announces Support for Postgres Database on Solaris 10. Press release. Retrieved on 2007-02-13.
6. ^ EnterpriseDB (2007-08-07). EnterpriseDB Announces First-Ever Professional-Grade PostgreSQL Distribution for Linux. Press release. Retrieved on 2007-08-07.
7. ^ Josh Berkus (2007-07-06). PostgreSQL publishes first real benchmark. Retrieved on 2007-07-10.
8. ^ SPECjAppServer®2004 Result. SPEC (2007-07-06). Retrieved on 2007-07-10.
9. ^ Josh Berkus (2007-07-06). PostgreSQL publishes first real benchmark. Retrieved on 2007-07-10.
10. ^ SPECjAppServer®2004 Result. SPEC (2007-07-04). Retrieved on 2007-09-01.
11. ^ PostgreSQL affiliates .ORG domain
12. ^ Sony Online opts for open-source database over Oracle

External links

About PostgreSQL

External PostgreSQL-related projects

The developers of PostgreSQL try to keep the system itself down to a set of "core" features, rather than encouraging extensions to be rolled into the main system. Here are places where "secondary" projects are managed:

PostgreSQL documentation

Performance tuning documentation

Software development is the translation of a user need or marketing goal into a software product.[1][2] Software development is sometimes understood to encompass the processes of software engineering combined with the research and goals of software marketing
..... Click the link for more information.
Code complete redirects here. For the Microsoft book, see Code Complete.

A software release is the distribution, whether public or private, of an initial or new and upgraded version of a computer software product.
..... Click the link for more information.
September 17 is the 1st day of the year (2nd in leap years) in the Gregorian calendar. There are 0 days remaining.

Events

  • 1176 - The Battle of Myriokephalon is fought.

..... Click the link for more information.
20th century - 21st century - 22nd century
1970s  1980s  1990s  - 2000s -  2010s  2020s  2030s
2004 2005 2006 - 2007 - 2008 2009 2010

2007 by topic:
News by month
Jan - Feb - Mar - Apr - May - Jun
..... Click the link for more information.
An operating system (OS) is the software that manages the sharing of the resources of a computer. An operating system processes system data and user input, and responds by allocating and managing tasks and internal system resources as a service to users and programs of the
..... Click the link for more information.
Cross-platform is a term which can refer to computer programs, operating systems, computer languages, programming languages, or other computer software and their implementations which can be made to work on multiple computer platforms.
..... Click the link for more information.
Computer software can be organized into categories based on common function, type, or field of use. A list follows of common software categories.

Categories of software

  • Applications

..... Click the link for more information.
A software license comprises the permissions, rights and restrictions imposed on software (whether a component or a free-standing program). Use of software without a license could constitute infringement of the owner's exclusive rights under copyright or, occasionally, patent law
..... Click the link for more information.
"New" BSD License
Author: Regents of the University of California
Version: N/A
Copyright on the license: Public Domain
Publication date: ?
OSI approved: Yes
Debian approved: Yes
Free Software: Yes

..... Click the link for more information.
A website (alternatively, Web site or web site) is a collection of Web pages, images, videos or other digital assets that is hosted on one or several Web server(s), usually accessible via the Internet, cell phone or a LAN.
..... Click the link for more information.
An object-relational database (ORD) or object-relational database management system (ORDBMS) is a relational database management system that allows developers to integrate the database with their own custom data types and methods.
..... Click the link for more information.
"New" BSD License
Author: Regents of the University of California
Version: N/A
Copyright on the license: Public Domain
Publication date: ?
OSI approved: Yes
Debian approved: Yes
Free Software: Yes

..... Click the link for more information.
Free software is software that can be used, studied, and modified without restriction, and which can be copied and redistributed in modified or unmodified form either without restriction, or with restrictions only to ensure that further recipients can also do these things.
..... Click the link for more information.
SQL
Paradigm: multi-paradigm
Appeared in: 1974
Designed by: Donald D. Chamberlin and Raymond F. Boyce
Developer: IBM
Latest release: SQL:2003/ 2003
Typing discipline: static, strong
Major implementations: Many
SQL
..... Click the link for more information.
MPEG-1 Audio Layer 3

File extension: .mp3
MIME type: audio/mpeg
Type of format: Audio MPEG-1 Audio Layer 3, more commonly referred to as MP3, is an audio encoding format.
..... Click the link for more information.
For the artist, see Jean Auguste Dominique Ingres.


Ingres (pronounced /iŋ-grεs'/) is a commercially supported, open-source relational database management system.
..... Click the link for more information.
For the artist, see Jean Auguste Dominique Ingres.


Ingres (pronounced /iŋ-grεs'/) is a commercially supported, open-source relational database management system.
..... Click the link for more information.
University of California, Berkeley is a public research university located in Berkeley, California, United States. Commonly referred to as UC Berkeley, Berkeley and Cal
..... Click the link for more information.
Michael Stonebraker is a computer scientist specializing in database research and development. His career covers, and helped create, the majority of the existing relational database market today.
..... Click the link for more information.
"New" BSD License
Author: Regents of the University of California
Version: N/A
Copyright on the license: Public Domain
Publication date: ?
OSI approved: Yes
Debian approved: Yes
Free Software: Yes

..... Click the link for more information.
Open source is a set of principles and practices that promote access to the design and production of goods and knowledge. The term is most commonly applied to the source code of software that is available to the general public with relaxed or non-existent intellectual property
..... Click the link for more information.
University of California, Berkeley is a public research university located in Berkeley, California, United States. Commonly referred to as UC Berkeley, Berkeley and Cal
..... Click the link for more information.
SQL
Paradigm: multi-paradigm
Appeared in: 1974
Designed by: Donald D. Chamberlin and Raymond F. Boyce
Developer: IBM
Latest release: SQL:2003/ 2003
Typing discipline: static, strong
Major implementations: Many
SQL
..... Click the link for more information.
Quel may refer to:
  • Quel search engine, a search engine for the manufacturing industry
  • QUEL query languages, a relational database access language
  • Quel, La Rioja, a municipality in La Rioja, Spain.

..... Click the link for more information.
Internet is a worldwide, publicly accessible series of interconnected computer networks that transmit data by packet switching using the standard Internet Protocol (IP). It is a "network of networks" that consists of millions of smaller domestic, academic, business, and government
..... Click the link for more information.
Pervasive Software Inc.

Public (NASDAQ: PVSW )
Founded Texas (1994)
Headquarters Austin, Texas

Key people John Farr, CEO

Industry Software & RDBMS & Data Integration
Products Pervasive Business Integrator
Pervasive Data Integrator
..... Click the link for more information.
Btrieve is a transactional database product based on Indexed Sequential Access Method (ISAM), which is a way of storing data for fast retrieval. There have been several versions of the product for DOS, Linux, older versions of Microsoft Windows, Windows 98, Windows NT, Windows
..... Click the link for more information.
NetWare is a network operating system developed by Novell, Inc. It initially used cooperative multitasking to run various services on a PC, and the network protocols were based on the archetypal Xerox XNS stack.
..... Click the link for more information.
EnterpriseDB Corporation

Private
Founded March 2004 [1]
Headquarters Iselin, New Jersey, USA

Key people Andy Astor, President and CEO
Denis Lussier, Chairman and CTO
Industry Software & Programming
Products EnterpriseDB RDBMS
..... Click the link for more information.
Oracle Database (commonly referred to as Oracle RDBMS or simply as Oracle), a relational database management system (RDBMS) software product released by Oracle Corporation, has become a major feature of database computing.
..... Click the link for more information.


This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.
Herod_Archelaus


page counter