The Advantages of Postgresql: Ruce Omjian
The Advantages of Postgresql: Ruce Omjian
BRUCE MOMJIAN
January, 2012 POSTGRESQL offers companies many advantages that can help their businesses thrive.
Creative Commons Attribution License http://momjian.us/presentations
Introduction
Why use databases? Why use open-source? PostgreSQL history PostgreSQL in the real world
Application
SQL Server
Multiple changes either all take place, or none of them Data always in a consistent state In-process changes invisible to outside users Data reliably stored High level of concurrency and reliability
Closed-Source Software
Black Box
987234 VWOJVC
Open-Source Software
Clear Box
987234 VWOJVC
Support
Database Company
Support
EnterpriseDB
Time
PostgreSQL License
Use for any purpose, including sale of customized versions with your closed-source modications. PostgreSQL supports custom:
PostgreSQL History
Postgres
Postgres95
Michael Stonebraker
Developers Globe
Top row: Thomas Lockhart, Jan Wieck, Tom Lane, Marc Fournier Bottom row: Vadim Mikheev, Bruce Momjian
The Advantages of PostgreSQL 20 / 43
PostgreSQL Releases
Initial release by PostgreSQL Global Development Team Apply all outstanding email patches.
Improved optimizer statistics Libpq++ overhauled Multi-column btree indexes new New
SET/SHOW/RESET SEQUENCE
commands
feature
New Java JDBC driver Triggers added Server Programming Interface (SPI) added NOT NULL constraint DEFAULT and CONSTRAINT added ANSI functions added for DATE/TIME and PRECISION
Subselcts Unix domain socket support for performance Improved user password conguration Much improved documentation Separate permissions for VIEWs PRIMARY
KEY
support
PL/TCL procedural language added UNION added Python added ECPG added New
ODBC
driver
The Advantages of PostgreSQL 27 / 43
Pgaccess added
Improved RULEs and VIEWs PL/PgSQL added Multi-byte character support Internet address data types HAVING added
MVCC Live backups NUMERIC data type Temporary tables CASE INTERSECT EXCEPT LIMIT/OFFSET SELECTFOR UPDATE Optimizer overhaul
The Advantages of PostgreSQL 29 / 43
Foreign keys More optimizer improvements ANSI JOIN syntax PL/Perl Oracle compatibility functions
Non-locking VACUUM Fix for Transaction id / OID wraparound Security xes Optimizer improvements Error message internationalization
Internals Flowchart
Main Libpq Postmaster
Postgres
Postgres
Utility Command
e.g. CREATE TABLE, COPY
Rewrite Query
Utilities
Catalog
Storage Managers
Access Methods
Nodes / Lists
Performance - AS3AP
Performance - TPC-C
Database Migration
Oracle IBMs DB2 Microsoft-SQL Microsoft Access Informix Interbase Dbase/FoxPro MySQL
Database Languages
PostgreSQL Platforms
PostgreSQL Usage
Order Entry, Inventory, Billing Customer Relations Management (CRM) Data warehouse, data analysis Medical/Hospital Records Storage Genetics Financial Accounting, Banking, Payroll Military Government, Social services, Elections Education Publishing Geography (GIS) Hotel Reservations, Restaurants Telephone billing, call tracking Helpdesk problem report tracking Sales Tracking Business to business commerce
The Advantages of PostgreSQL 40 / 43
Product purchase User preferences Job listings Auctions Real Estate listings Community building Dynamic content Text indexing
Future Directions
Conclusion
http://momjian.us/presentations