[2025-jun-17] The SlackDocs mailing lists at https://lists.alienbase.nl/mailman/listinfo have been retired. No one has been using these lists for years and it's time to say goodbye. The list archives remain available at https://scalzi.slackware.nl/mailman/listinfo/slackdocs

[2025-jun-17] The SlackDocs Wiki has moved to a new server, in order to make it more performant.

Welcome to the Slackware Documentation Project

PostgreSQL

PostgreSQL,or Postgres, is an object-relational database management system (ORDBMS) with an emphasis on extensibility and on standards-compliance.

Installing

Postgres is currently available from slackbuilds.org and can be installed via that.

PHP / Apache Support

The official PHP Slackware package currently does not ship with Postgres support. To enable it the source and SlackBuild script for the PHP package should be downloaded from a Slackware mirror and the following configure options should be added to php.SlackBuild before building:

  --with-pdo-pgsql=shared
  --with-pgsql=shared

Alternative method

php-pgsql could be installed via SBo

After installing the required modules can be enabled via php.ini

Sources

QR Code
QR Code howtos:databases:postgresql (generated for current page)