37

(BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives
Page 2: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

POSTGRES IS DIFFERENT FROM(BETTER THAN)

YOUR RDBMS

Page 3: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

Gurjeet Singh

gurjeet.singh.im

EDB - EnterpriseDB.com

Page 4: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

FROM THE PERSPECTIVE OF ADeveloperManager

Page 5: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER'S PERSPECTIVELicenseReliabilitySecurityFeaturesExtensibilityPerformanceDiagnosability

Page 6: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : LICENSEBSD-like License

Liberal than/Very different from GPL.PostgreSQL License gives you

Freedom to read, patch/improve the code.An opportunity to understand the database internalsInstall, use/develop and deploy full feature-set without alicenseUpgrade hardware without paying for license costUnlike commercial RDBMSs where licenses come in theway of development, QA, and hardware upgrades.

Page 7: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : RELIABILITYACID compliantConstraints (Primary Key, Foreign Key, CHECK)Data-page checksums to detect corruption

Page 8: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : SECURITYPer-object GRANT/REVOKE permissionsPer-column GRANT/REVOKE permissionsSSL connectionsLDAP and RADIUS authentication

Page 9: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : FEATURESPostgres is a PlatformVast feature set... and ever-expanding

Postgres Feature Matrix

http://www.postgresql.org/about/featurematrix/

Page 10: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : FEATURESCommon Table Expressions (CTEs)

Similar to Macro in programming languagesSupports recursive evaluation (alternative to Oracle'sCONNECT BY)

Page 11: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : FEATURES : DATA TYPESMany advanced data types come builtin

Full List of Builtin Data Types

http://www.postgresql.org/docs/9.3/static/datatype.html

Page 12: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : FEATURES : DATA TYPESDoes not have/need NVARCHAR data type

The CHAR/VARCHAR/TEXT types are capable of storingUnicode data

Page 13: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : FEATURES : DATA TYPESBoolean (a first-class data type)Bit (and Bit strings)MoneyBytea (binary data)Interval (difference between TIMESTAMPs)Enumerated TypesGeometry Types (Point, Line Segment, Polygon, ...)Network Address (inet, cidr, macaddr)

Page 14: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : FEATURES : DATA TYPESRange Types (tsrange, daterange, int4range, ...)Composite typesBuiltin multi-dimensional arrays

Automatically defines array type of builtin and user-defineddata types

Page 15: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : FEATURES : DATA TYPEShstoreJSONXML

Page 16: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : FEATURESStreaming ReplicationHot StandbyPer-transaction synchronous replicationTrue serializable transactionsLISTEN/NOTIFYTriggersExclusion constraintsWindow FunctionsFunction overloadingOperator overloadingFull-text searchLarge Objects up to 4TBMaterialized views

Page 17: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : FEATURESCreate procedures in various programming languages

PL/pgsqlPL/perlPL/tclPL/javaPL/v8 - JavaScript

Page 18: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : FEATURE/PERFORMANCETOAST

The Oversized Attribute Storage Technique

Automatic out-of-line storage and automatic compression

Page 19: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : PERFORMANCECost-based optimizerIndex-only scansSynchronized seq-scansTable partitioningUnlogged tables

Page 20: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : PERFORMANCEPartial indexesMany types of indexes

BTreeHashGinGistKNNSP-Gist

Page 21: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : PERFORMANCETypes of join-strategies

Nested-loop joinsHash joinsSort-Merge joinsBitmap-index scan; Bitmap-And/Or joins (in-memory)

Can use multiple indexes of a table in the same scanSemi joinsAnti joins

Page 22: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : PERFORMANCEFaster than NoSQL (at NoSQL use case)See slides 32 onwards of Chrisophe Pettus'PostgreSQL as a Schemaless Database

http://thebuild.com/presentations/pg-as-nosql-pgday-fosdem-2013.pdf

Page 23: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : DIAGNOSTICSPer-function statisticsPerformance Views

pg_stat_activitypg_lockspg_stat_*

pg_stat_all_tablespg_stat_all_indexes...

Page 24: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : DIAGNOSTICSLogging Options

log_min_duration_statementlog_temp_files

DTrace/SystemTap support

Scripts to record and diagnose performance issues

Page 25: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : EXTENSIBILITYHighly ExtensibleCreate Your Own

Data TypesOperatorsIndex Types

create extensionCheck out Foreign Data WrapperForeign Tables

PGXN.org

Page 26: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

DEVELOPER : EXTENSIBILITYExamples

PostGIS

PostGIS adds support for geographic objects to thePostgreSQL object-relational database.

PostgreSQL-HLL

A PostgreSQL extension adding HyperLogLog datastructures as a native data type

Page 27: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

MANAGER'S PERSPECTIVEAcquisition Cost (License)Future ProofVendors/Providers (Companies who can help)Maintenance Cost (Support)Buy-in From Upper Management

Page 28: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

MANAGER : ACQUISITION COSTFree

Page 29: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

MANAGER : ACQUISITION COSTFREESave Money $$$Higher Profit MarginsA Leg Up On The Competition

Page 30: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

MANAGER : ACQUISITION COSTBSD-like License

Liberal than/Very different from GPL.Install, use/develop and deploy full feature-set without alicenseUpgrade hardware without paying for license costUnlike commercial RDBMSs where licenses come in theway of development, QA, and hardware upgrades.

Page 31: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

MANAGER : FUTURE PROOFCommunity-drivenNo single commercial entity controls it (unlike MySQL)Will be always free (cost and project management)

Page 32: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

MANAGER : FUTURE PROOFEver-increasing resource-pool; developers and DBAsCompare growth in job requirements

Page 33: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

MANAGER : VENDORS/PROVIDERSMany top-quality vendors

EDB (EnterpriseDB)PG Experts2nd QuadrantOmniTICommand Prompt

Many smaller consulting teams/individuals

Page 34: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

MANAGER : MAINTENANCE COST24/7 Support availableVery affordable support contracts

For e.g. EDB charges per-socket (unlike Oracle, thatcharges per CPU)

Page 35: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

MANAGER : MAINTENANCE COSTConsultingRemote-DBADatabase Health ChecksTraining

For DevelopersFor DBAs

Page 36: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

MANAGER : UPPER MANAGEMENT BUY-INShow them the last few slides :)

Page 37: (BETTER THAN) - PostgreSQLwiki.postgresql.org/...Is...Better_Than_Your_RDBMS.pdfDEVELOPER : LICENSE BSD-like License Liberal than/Very different from GPL. PostgreSQL License gives

THANK YOU