Swiftpack.co - Package - PostgresApp/PostgresApp

Postgres.app Version 2

This is a complete rewrite of Postgres.app

  • Modern User Interface
  • Improved Error Messages & Status Reporting
  • Run Multiple Versions of PostgreSQL simultaneously
  • Written in Swift!

If you are looking for the current/old version of Postgres.app, please switch to the pg9X branches!

Most of this README is outdated and needs to be updated for the new version.

Download

You can download Postgres.app from the Postgres.app website.

Older versions and pre-releases are available in the releases section on GitHub.

Documentation

Documentation is available at http://postgresapp.com/documentation, as well as from the "Open Documentation" menu item in Postgres.app.

What's Included?

How To Build

Note: This section is outdated

If you want to tweak the GUI only, just make sure you have a compiled copy of Postgres.app in your applications folder. Open the XCode file and start hacking!

If you want to build your own versions of all the PostgreSQL binaries, you have a bit more work.

Make sure you have autoconf, automake installed. The quickest way to install them is using MacPorts:

sudo port install autoconf automake

For building PostgreSQL with docs, you also need a bunch of other tools:

sudo port install docbook-dsssl docbook-sgml-4.2 docbook-xml-4.2 docbook-xsl libxslt openjade opensp

Then make sure you remove other versions of Postgres.app from your Applications folder.

Open the src directory and type make. This will download and build PostgreSQL, PostGIS, and PLV8. Several hundred megabytes of sources will be downloaded and built. This can take an hour or longer, depending on your Internet connection and processor speed. All the products will be installed in /Applications/Postgres.app/Contents/MacOS/.

Once this is done, you can just open Postgres.xcodeproj in Xcode, select the "Postgres" scheme, and click "Build".

To share your build, use the "Archive" command and then use the "Distribute" command in Organizer.

Under the Hood

Postgres.app bundles the PostgreSQL binaries inside the application package. When you first start Postgres.app, here's what it does:

  • Initialise a database cluster: initdb -D DATA_DIRECTORY -EUTF-8 --locale=XX_XX.UTF-8
  • Start the server: pg_ctl start -D DATA_DIRECTORY -w -l DATA_DIRECTORY/postgres-server.log
  • Create a user database: createdb USERNAME

On subsequent app launches, Postgres.app only starts the server.

The default DATA_DIRECTORY is /Users/USERNAME/Library/Application Support/Postgres/var-9.X

Note that Postgres.app runs the server as your user, unlike other installations which might create a separate user named postgres.

When you quit Postgres.app, it stops the server using the following command:

  • pg_ctl stop -w -D DATA_DIRECTORY

Command Line Utilities

Postgres.app also includes useful command line utilities:

  • PostgreSQL: clusterdb createdb createlang createuser dropdb droplang dropuser ecpg initdb oid2name pg_archivecleanup pg_basebackup pg_config pg_controldata pg_ctl pg_dump pg_dumpall pg_receivexlog pg_resetxlog pg_restore pg_standby pg_test_fsync pg_test_timing pg_upgrade pgbench postgres postmaster psql reindexdb vacuumdb vacuumlo
  • PROJ.4: cs2cs geod invgeod invproj nad2bin proj
  • GDAL: gdal_contour gdal_grid gdal_rasterize gdal_translate gdaladdo gdalbuildvrt gdaldem gdalenhance gdalinfo gdallocationinfo gdalmanage gdalserver gdalsrsinfo gdaltindex gdaltransform gdalwarp nearblack ogr2ogr ogrinfo ogrtindex testepsg
  • PostGIS: pgsql2shp raster2pgsql shp2pgsql

See the documentation for more info.

Contact

If you find a bug, please open an issue.

Postgres.app is maintained by Jakob Egger and Chris Pastl.

License

Postgres.app is released under the PostgreSQL License. See LICENSE for additional information.

Github

link
Stars: 4330
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

v2.2beta1 - May 24, 2018

The latest build of Postgres.app with PostgreSQL 11 Beta 1

  • PostgreSQL 11 Beta 1 with PostGIS 2.5dev
    (currently without plv8. I'll try to include it in the next beta)
  • PostgreSQL 10.4 with PostGIS 2.4.4
  • PostgreSQL 9.6.9 with PostGIS 2.3.7
  • PostgreSQL 9.5.13 with PostGIS 2.2.7

Postgres.app requires macOS 10.10 or later.

The SHA 256 hash of the disk image is 21ddf269ad13221a42db7613ac829837bdf10f02945e21252c40ad4d05bb629e

v2.1.4 - May 10, 2018

This release of Postgres.app comes with the latest binaries from the PostgreSQL Quarterly Update May 2018.

Postgres.app 2.1.4 is the latest and greatest version of Postgres.app for Macs running macOS 10.10 or later. It includes three versions of PostgreSQL:

  • PostgreSQL 9.5.13 with PostGIS 2.2.7
  • PostgreSQL 9.6.9 with PostGIS 2.3.7
  • PostgreSQL 10.4 with PostGIS 2.4.4

We also include legacy versions of Postgres.app for computers running macOS 10.7 or later:

  • PostgreSQL 9.3.23 with PostGIS 2.1.9
  • PostgreSQL 9.4.18 with PostGIS 2.1.9
  • PostgreSQL 9.5.13 with PostGIS 2.2.7
  • PostgreSQL 9.6.9 with PostGIS 2.3.7
  • PostgreSQL 10.4 with PostGIS 2.4.4

v2.1.3 - Mar 1, 2018

These is an unscheduled security update which addresses the security vulnerability CVE-2018-1058.

Postgres.app 2.1.3 is the latest and greatest version of Postgres.app for Macs running macOS 10.10 or later. It includes three versions of PostgreSQL:

  • PostgreSQL 9.5.12 with PostGIS 2.2.6
  • PostgreSQL 9.6.8 with PostGIS 2.3.6
  • PostgreSQL 10.3 with PostGIS 2.4.3

We also include legacy versions of Postgres.app for computers running macOS 10.7 or later:

  • PostgreSQL 9.3.22 with PostGIS 2.1.9
  • PostgreSQL 9.4.17 with PostGIS 2.1.9
  • PostgreSQL 9.5.12 with PostGIS 2.2.6
  • PostgreSQL 9.6.8 with PostGIS 2.3.6
  • PostgreSQL 10.3 with PostGIS 2.4.3

v2.1.2 - Feb 14, 2018

Upgrade to the latest releases of PostgreSQL!

This is the latest and greatest version of Postgres.app for Macs running macOS 10.10 or later. It includes three versions of PostgreSQL:

  • PostgreSQL 10.2 (Release Notes) with PostGIS 2.4.3
  • PostgreSQL 9.6.7 (Release Notes) with PostGIS 2.3.6
  • PostgreSQL 9.5.11 (Release Notes) with PostGIS 2.2.6

The SHA-256 hash of the disk image is 3fca874dfb9472bee547b82a40b0b3cca3a20df07349bf166aea372dd4a633f8

10.2 - Feb 14, 2018

This is the legacy version of Postgres.app for computers running macOS 10.7 or later. This release has the old user interface and contains a single version of PostgreSQL. We provide this binary so users who don't want to upgrade their Mac can still use up to date versions of PostgreSQL.

This release contains:

  • PostgreSQL 10.2
  • PostGIS 2.4.3