Manual:PostgreSQL
The purpose of this page is to collect information and experiences about running MediaWiki on PostgreSQL.
MediaWiki supports PostgreSQL since 1.7. See task T2384 for a list of issues. MediaWiki requires PostgreSQL 9.0 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.
Contents
Is PostgreSQL a good choice for MediaWiki?[edit | edit source]
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.
MediaWiki database migration[edit | edit source]
From MySQL to PostgreSQL[edit | edit source]
The MWDumper tool might help.
There is also a mediawiki_mysql2postgres.pl perl script in maintenance/postgres, but there is uncertainty whether it works.
From PostgreSQL to MySQL[edit | edit source]
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.
![]() |
Engines: MySQL – Oracle – PostgreSQL – SQLite Technical documentation: Schema (tables ) – API property associations – Field prefixes – Primary key storage in other fields – Wikimedia extension tables Configuration: Settings – Sharing Development: Access – Optimization – Policy – Updater – Extension schema updates – Patch file Core tables: archive – category – categorylinks – change_tag – config – externallinks – filearchive – hitcounter – image – imagelinks – interwiki – iwlinks – ipblocks – job – l10n_cache – langlinks – logging – log_search – msg_resource – msg_resource_links – module_deps – objectcache – oldimage – page – pagelinks – page_props – page_restrictions – protected_titles – querycache – querycachetwo – querycache_info – recentchanges – redirect – revision – searchindex – sites – site_stats – tag_summary – templatelinks – text – transcache – updatelog – uploadstash – user – user_former_groups – user_groups – user_newtalk – user_properties – valid_tag – watchlist |
---|