Fixed bug 15148, total breakage of Special:BlockIP on PostgreSQL:
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 6 Sep 2008 07:05:14 +0000 (07:05 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 6 Sep 2008 07:05:14 +0000 (07:05 +0000)
commit20cfed18d902526219c3542f29a4073575c22715
tree55583b335df0db4ae70d291ba5ee5f801e64840f
parentd61e716dc8b9647aebcd7c475e8aa7b5a2c8fec0
Fixed bug 15148, total breakage of Special:BlockIP on PostgreSQL:

* Migrated to a unique index for IP block conflict detection, like we did for MySQL some aeons ago.
* Modified DatabasePostgres to return a correct affected row count for INSERT IGNORE. Tested for single and multi.
* Fixed an unrelated bug: duplicate index rc_timestamp in tables.sql
* Tested for install and upgrade on PG 8.3.

No changelog because I'll backport it to 1.13.
includes/db/DatabasePostgres.php
maintenance/postgres/archives/patch-ipb_address_unique.sql [new file with mode: 0644]
maintenance/postgres/tables.sql
maintenance/updaters.inc