Manual:PostgreSQL/en

The purpose of this page is to collect information and experiences about running MediaWiki on PostgreSQL.

MediaWiki supports PostgreSQL since 1.7. See for a list of issues. MediaWiki requires PostgreSQL or later, and PG database support enabled in PHP.

Most of the common maintenance scripts work with PostgreSQL however some of the more obscure ones might have problems.

Is PostgreSQL a good choice for MediaWiki?
Wikipedia uses MySQL so MediaWiki gets more testing on MySQL than PostgreSQL. While support for PostgreSQL is maintained by volunteers, most core functionality is working.

From MySQL to PostgreSQL
The tool might help.

There is also a perl script in maintenance/postgres, but there is uncertainty whether it works.

From PostgreSQL to MySQL
This is generally not recommended as converting from Postgres data types back to MySQL is not as simple an operation as the reverse.

There are however some scripts which may work.

Installation of MediaWiki with PostgreSQL and Nginx
The methods below briefly describe ways to install with PostgreSQL 9.5.2 and Nginx 1.8 from their source on Linux 14.04.

For cleaner and simpler maintenance, all the programs are installed in /home/s/src