Postgres Database

By : Ibrahem Batta
and Emad Shakhsheer
What Is Postgres ?

• PostgreSQL, often simply Postgres, is an
  object-relational database management
  system (ORDBMS).


• available for many platforms including Linux,
  FreeBSD, Solaris, MS Windows and Mac OS.
Cont.

• Free and open source software.
        • No copy right.
        • Access core code.
        • Development part .

• Global community of developers and
  companies develops the system.
History

• The Ingres project at the University of
  California, Berkeley, in 1982.


• In 1985 started a post-Ingres project to
  address the problems with contemporary
  database systems that had become.


• Starting in 1986, the team published a number
  of papers describing the basis of the system
Cont.

• by 1988 had a prototype version.


• The team released version 1 to a small
  number of users in June 1989.


• Version 2 with a re-written rules system in
  June 1990.
Cont.


• By 1993 the great number of users began to
  increase.


• In 1996, the project was renamed to
  PostgreSQL to reflect its support for SQL.
Parts and Database administration

• Psql : appreciation to PostgreSQL.


• pgAdmin : graphical front-end administration
  tool .


• phpPgAdmin : phpPgAdmin is a web-based
  administration tool for PostgreSQL written in
  PHP and based on the popular phpMyAdmin
  interface.
Cont.

• pgFouine : to generate detailed reports from a
  PostgreSQL log file and is also capable of
  providing VACUUM analysis.
• Postgres Enterprise Manager : is a non-free
  tool consisting of a service, multiple agents,
  and a GUI which provides remote monitoring,
  management, reporting, capacity planning and
  tuning.
Prominent users
• Yahoo!
• MySpace, a popular social networking
  website,
• OpenStreetMap, a collaborative project to
  create a free editable map of the world.
• Sony Online multiplayer online games.
• Skype VoIP application, central business
  databases.
General advantages
•   Free.


•   open source software.


• Has excellent commercial and community
  support options
Cont.
•   High reliability.


• High stability.


• Is very scalable and extensible.


•   Cross platforms.
Cont.
•    GUI database design and administration
    tools.


• High level of concurrency.


• Data always in a consistent state.
Comparison.

Feature                   Oracle    PostgreSQL
Open Source               Not all       X
Free / No License Costs     -           X
Replication                 X           X
Views                       X           X
Triggers                    X           X
Unicode                   Not all       X
Sequences                   X           X
Inheritance                 X           X
Open API                    -           X
Native SSL Support        No all        X
Spatial database.
•    Is a database that is optimized to store and
    query data that is related to objects in
    space, including points, lines and polygons.
    While typical databases can understand
    various numeric and character types of
    data, additional functionality needs to be
    added for databases to process spatial data
    types.
PostGIS.
•   Is an open source software program that
    adds support for geographic objects to the
    PostgreSQL object-relational database.
    PostGIS follows the Simple Features for
    SQL specification from the Open Geospatial
    Consortium (OGC).
•   ArcGIS is the most Prominent user.
pgRouting.
• provides routing functionality on a PostGIS
  database. Free & open source.


• Added to the set of functions in PostGis.


• The most important function is shortest
  path.
Postgres Database installation
Postgres Database installation
Installed programe
Install Apache server for Postgres
Test Apache Server
Install pg php admin
Cont.
cont.
Cont.
What is Template and what is POSTGIS
template ?
Installing POSTGIS Template
Application Stack Builder
Cont.
Cont.
Create PostGis Database
Create PostGis table
Application on spatial Types

Postgres database Ibrahem Batta

  • 1.
    Postgres Database By :Ibrahem Batta and Emad Shakhsheer
  • 2.
    What Is Postgres? • PostgreSQL, often simply Postgres, is an object-relational database management system (ORDBMS). • available for many platforms including Linux, FreeBSD, Solaris, MS Windows and Mac OS.
  • 3.
    Cont. • Free andopen source software. • No copy right. • Access core code. • Development part . • Global community of developers and companies develops the system.
  • 4.
    History • The Ingresproject at the University of California, Berkeley, in 1982. • In 1985 started a post-Ingres project to address the problems with contemporary database systems that had become. • Starting in 1986, the team published a number of papers describing the basis of the system
  • 5.
    Cont. • by 1988had a prototype version. • The team released version 1 to a small number of users in June 1989. • Version 2 with a re-written rules system in June 1990.
  • 6.
    Cont. • By 1993the great number of users began to increase. • In 1996, the project was renamed to PostgreSQL to reflect its support for SQL.
  • 7.
    Parts and Databaseadministration • Psql : appreciation to PostgreSQL. • pgAdmin : graphical front-end administration tool . • phpPgAdmin : phpPgAdmin is a web-based administration tool for PostgreSQL written in PHP and based on the popular phpMyAdmin interface.
  • 8.
    Cont. • pgFouine :to generate detailed reports from a PostgreSQL log file and is also capable of providing VACUUM analysis. • Postgres Enterprise Manager : is a non-free tool consisting of a service, multiple agents, and a GUI which provides remote monitoring, management, reporting, capacity planning and tuning.
  • 9.
    Prominent users • Yahoo! •MySpace, a popular social networking website, • OpenStreetMap, a collaborative project to create a free editable map of the world. • Sony Online multiplayer online games. • Skype VoIP application, central business databases.
  • 10.
    General advantages • Free. • open source software. • Has excellent commercial and community support options
  • 11.
    Cont. • High reliability. • High stability. • Is very scalable and extensible. • Cross platforms.
  • 12.
    Cont. • GUI database design and administration tools. • High level of concurrency. • Data always in a consistent state.
  • 13.
    Comparison. Feature Oracle PostgreSQL Open Source Not all X Free / No License Costs - X Replication X X Views X X Triggers X X Unicode Not all X Sequences X X Inheritance X X Open API - X Native SSL Support No all X
  • 14.
    Spatial database. • Is a database that is optimized to store and query data that is related to objects in space, including points, lines and polygons. While typical databases can understand various numeric and character types of data, additional functionality needs to be added for databases to process spatial data types.
  • 15.
    PostGIS. • Is an open source software program that adds support for geographic objects to the PostgreSQL object-relational database. PostGIS follows the Simple Features for SQL specification from the Open Geospatial Consortium (OGC). • ArcGIS is the most Prominent user.
  • 16.
    pgRouting. • provides routingfunctionality on a PostGIS database. Free & open source. • Added to the set of functions in PostGis. • The most important function is shortest path.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
    What is Templateand what is POSTGIS template ?
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.