aboutsummaryrefslogtreecommitdiffstats
path: root/includes/DatabasePostgres.php
Commit message (Collapse)AuthorAgeFilesLines
* * Reorganised the includes directory, creating subdirectories db, parser and ↵Tim Starling2008-06-161-1330/+0
| | | | | | | | | | | | specials * Wrote a tool to check the integrity of the autoloader class list, fixed some issues that came up. * Start the autoloader before LocalSettings.php, so that when an extension writer thinks an inefficient one-file special page extension is the way to go, they don't have to use explicit includes to make the class inheritance work. Should continue to work with $IP set in LocalSettings.php as long as $IP is set before extensions are included. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/36353
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-201-2/+6
| | | | | | | | | | | | | | | | | | Doxygen documentation update: * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group. * Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file. * Removed some empty comments * Removed some ?> Added following groups: * ExternalStorage * JobQueue * MaintenanceLanguage One more thing: there are still a lot of warnings when generating the doc. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
* Short-circuit true if insert has no rows.Greg Sabino Mullane2008-05-021-1/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/34125
* * remove end of line whitespaceSiebrand Mazeland2008-04-141-26/+24
| | | | | | | | * remove empty lines at end of file * remove "?>" where still present Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/33276
* * Introduced LBFactory -- an abstract class for configuring database load ↵Tim Starling2008-03-301-0/+11
| | | | | | | | | | | | | | | | | | | balancers and connecting to foreign DBs. * Wrote two concrete implementations. LBFactory_Simple is for general installations. LBFactory_Multi will replace the runtime configuration used on Wikimedia and allow load-balanced connections to any DB. * Ported Special:Userrights, CentralAuth and OAI audit to the LBFactory system. * Added ForeignDBViaLBRepo, a file repository which uses LBFactory. * Removed $wgLoadBalancer and $wgAlternateMaster * Improved the query group concept to allow failover and lag control * Improved getReaderIndex(), it will now try all servers before waiting, instead of waiting after each. * Removed the $fail parameter to getConnection(), obsolete. * Removed the useless force() function. * Abstracted the replication position interface to allow for future non-MySQL support. * Rearranged Database.php. Added a few debugging features. * Removed ancient benet-specific hack from waitForSlave.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/32578
* Override replaceVars, other changes to support 8.3 install.Greg Sabino Mullane2008-02-101-323/+341
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/30793
* Make the test table name a bit more descriptive.Greg Sabino Mullane2008-02-101-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/30790
* Bug 12768: make hasContraint schema aware. Thanks to Sven Klemm.Greg Sabino Mullane2008-02-041-1/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/30532
* Refactor Pl/Pgsql check so we can also attempt installing when connecting as ↵Greg Sabino Mullane2008-02-041-26/+34
| | | | | | | superuser. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/30531
* Add currentSequenceValue() function.Greg Sabino Mullane2007-12-181-0/+12
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/28628
* Move initial connection checks into their own function.Greg Sabino Mullane2007-12-161-323/+334
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/28544
* Call quote_ident on raw schema names, per bug 11952.Greg Sabino Mullane2007-12-061-9/+14
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/28214
* Force string to UTF-8 if we have mb stuff available.Greg Sabino Mullane2007-11-051-0/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/27203
* Postgres updating:Greg Sabino Mullane2007-09-281-0/+1
| | | | | | | | | | Map bpchar to char Don't change default search_path if schema not 'mediawiki' in LocalSettings Clean up the output of updaters.inc Make sure we set search_path and others for current session when altering user. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/26210
* Use same typnames as schema for ease. Put added column before column type ↵Greg Sabino Mullane2007-09-281-1/+6
| | | | | | | checks. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/26209
* Make CONCAT calls database portable, change IF() to standard CASE-WHEN calls.Greg Sabino Mullane2007-09-231-0/+9
| | | | | | | | | Postgres: replace CHAR(64) with TEXT for fa_storage_key of filearchive Postgres: Add hasConstraint to allow replacing of oldimage fk constraint Postgres: make oldimage cascade delete on image deletion Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/26043
* Fix bug 11292, unserialize errors with Postgres, by changing from array to ↵Greg Sabino Mullane2007-09-231-4/+7
| | | | | | | object when slinging around blobs. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/26040
* Set search_path on Postgres if wgDBmwschema != 'mediawiki' to support ↵Greg Sabino Mullane2007-09-191-0/+9
| | | | | | | multiple wikis for a single user, per discussion on bug 11136 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/25929
* Add implicitOrderby() to make sure that SpecialAllpages uses an ORDER BY ↵Greg Sabino Mullane2007-09-021-0/+3
| | | | | | | | | | when needed. Made this an option rather than forcing the ORDER BY as testing show MySQL is faster without it for large tables. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/25410
* Multi-insert appeared in Postgres 8.2, not 8.1Greg Sabino Mullane2007-08-091-1/+1
| | | | | | | Bug #10763. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/24702
* Add function to check if function-based indexes are supported by the backend DB.Greg Sabino Mullane2007-07-301-0/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/24460
* Fix bug 10608, plus a bonus one that was hidden by that bug.Greg Sabino Mullane2007-07-161-3/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/24181
* bug 10496 DISTINCT option logic incorrect in Database::makeSelectOptionsYuri Astrakhan2007-07-071-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23857
* Return a ResultWrapper from Database::query() and query builder functions, ↵Tim Starling2007-07-051-9/+43
| | | | | | | instead of a raw DB result resource. Backwards compatibility is maintained, except with naughty code that was calling database driver functions directly on result objects. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23756
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-291-1/+1
| | | | | | | mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
* getLag() returns false, not 0. Add reminder about future code refactoring.Greg Sabino Mullane2007-06-221-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23257
* Return raw bytea string, not arrayified version for encodeBlob()Greg Sabino Mullane2007-06-221-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23241
* Revert to correct encodeBlob() functionGreg Sabino Mullane2007-06-111-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22912
* Fix up encodeBlob, don't worry so much about indexInfo compat.Greg Sabino Mullane2007-06-081-7/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22831
* Return true/false, not o/not-0 for relation checking functions, for those ↵Greg Sabino Mullane2007-06-071-1/+1
| | | | | | | parts of the code that demand "result === false" rather than saying (!result) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22813
* (bug 10104) Provide stub "getLag()" function for DatabaseOracle and ↵Rob Church2007-06-041-1/+10
| | | | | | | DatabasePostgres Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22721
* The variable mLastResult may be null /or/ false: check for both in affected ↵Greg Sabino Mullane2007-05-291-1/+1
| | | | | | | rows method. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22543
* More defined() that should be isset(), thanks to David Ford, david@blue-labs.orgGreg Sabino Mullane2007-05-161-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22212
* Replace defined with isset, thanks to David Ford, david@blue-labs.orgGreg Sabino Mullane2007-05-161-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22211
* Re-add tableName call to insert, whitespace/docs cleanup.Greg Sabino Mullane2007-05-151-15/+36
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22186
* Redo insert() function: support IGNORE option, support multi-values.Greg Sabino Mullane2007-05-151-22/+57
| | | | | | | Fixes bug #9417 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/22178
* *Support for HAVING clauseAaron Schulz2007-05-041-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21877
* Ignore USE INDEX option.Greg Sabino Mullane2007-05-021-9/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21807
* Yet more doc tweaks:Nick Jenkins2007-04-201-1/+4
| | | | | | | | | * Add @addtogroup tags to various classes, to try and group conceptually-related classes together. * Add brief descriptions to various Special pages, thanks to Phil Boswell. * Moving some docs to be right above the classes they represent, so that they are picked up. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21402
* Add constraintExists function, mild cleanup of other nearby funcs.Greg Sabino Mullane2007-04-191-5/+21
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21358
* "@todo no-op" sounds a bit peculiar. ;)Aryeh Gregor2007-04-181-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21351
* Some small doc tweaks to reduce Doxygen warnings, namely:Nick Jenkins2007-04-181-1/+1
| | | | | | | | | | | | | | | | | | * @link. You might think @link would surely mean "here comes a web URL" ... but @link is a valid command in Doxygen, which means an entirely different kind of link (an internal link to somewhere, so that you can separate documentation and implementation). The result is a mess, and the best solution I can see is to use "@see" instead of "@link". * Warning: argument `nourl' of command @param is not found in the argument list of Linker::makeMediaLinkObj($title,$text='') * Moving few class descriptions to right above classes, and/or formatting into Javadoc style. * "@addtogroup Special Pages" --> "@addtogroup SpecialPage" so that all special pages have the same @addtogroup tag. * @fixme --> @todo (must have missed these before) * "@param $specialPage @see" remove the "@" in the "@see" to stop warning. * @throws wants type, then a brief description, to stop warning. This last one is for PHPdocumentor only, but it fixes something for PHPDocumentor, and should be neutral for Doxygen: * WARNING in includes/api/ApiFormatYaml_spyc.php on line 860: docblock template never terminated with /**#@-*/ Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21343
* Add estimateRowCount(), to support changes made in r21071Greg Sabino Mullane2007-04-071-0/+24
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/21091
* Enforce a consistent datestyle, just in case.Greg Sabino Mullane2007-04-031-0/+16
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20985
* Switch to always return GMT time.Greg Sabino Mullane2007-03-281-0/+17
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20776
* Revert $wgDBtimezone commits: r20688, 20689, 20690, 20691.Brion Vibber2007-03-271-15/+1
| | | | | | | Alters behavior of wfTimestamp() and wfTimestampNow() in clearly broken ways, such that current time would not return current time anymore. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20749
* Find out the local db timezoneGreg Sabino Mullane2007-03-261-1/+15
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20689
* Account for pre-existing test table, commit only if setup completes.Greg Sabino Mullane2007-03-261-1/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20687
* Mild formatting, fix missing '$'Greg Sabino Mullane2007-03-251-8/+13
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20685
* Remove variables when we can simply override accessors instead.Greg Sabino Mullane2007-03-211-5/+9
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/20585