Mediawiki 1.10 and PG 8.3 upgrade - Mailing list pgsql-general
From | Jon Lapham |
---|---|
Subject | Mediawiki 1.10 and PG 8.3 upgrade |
Date | |
Msg-id | 484009CA.6060204@jandr.org Whole thread Raw |
Responses |
Re: Mediawiki 1.10 and PG 8.3 upgrade
Re: Mediawiki 1.10 and PG 8.3 upgrade Re: Mediawiki 1.10 and PG 8.3 upgrade |
List | pgsql-general |
Hello all, I'm sure I did something wrong during my upgrade of mediawiki from Postgresql 8.2 to 8.3. Any help on how to recover would be appreciated. Possible useful info: OS: Fedora 9 Postgresql: PostgreSQL 8.3.1 on x86_64-redhat-linux-gnu Mediaiwiki: mediawiki-1.10.4-39.fc9.x86_64 My mediawiki pages are loading, but when I try to edit them, I get this error message: A database error has occurred Query: INSERT INTO pagecontent (old_id,old_text,old_flags) VALUES [snip] ERROR: text search configuration "default" does not exist CONTEXT: PL/pgSQL function "ts2_page_text" line 3 at assignment Backtrace: #0 /usr/share/mediawiki/includes/Database.php(761): DatabasePostgres->reportQueryError('ERROR: text se...', 1, 'INSERT INTO pag...', 'Revision::inser...', 0) #1 /usr/share/mediawiki/includes/DatabasePostgres.php(695): Database->query('INSERT INTO pag...', 'Revision::inser...', 0) #2 /usr/share/mediawiki/includes/Revision.php(696): DatabasePostgres->insert('text', Array, 'Revision::inser...') #3 /usr/share/mediawiki/includes/Article.php(1336): Revision->insertOn(Object(DatabasePostgres)) #4 /usr/share/mediawiki/includes/Article.php(1205): Article->doEdit('{| class="wikit...', '', 98) #5 /usr/share/mediawiki/includes/EditPage.php(865): Article->updateArticle('{| class="wikit...', '', false, false, '', '') #6 /usr/share/mediawiki/includes/EditPage.php(426): EditPage->attemptSave() #7 /usr/share/mediawiki/includes/EditPage.php(279): EditPage->edit() #8 /usr/share/mediawiki/includes/Wiki.php(432): EditPage->submit() #9 /usr/share/mediawiki/includes/Wiki.php(48): MediaWiki->performAction(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest)) #10 /usr/share/mediawiki/index.php(92): MediaWiki->initialize(Object(Title), Object(OutputPage), Object(User), Object(WebRequest)) #11 {main} I would like to say thanks to the people that put in so much time and effort in developing tsearch2 (and postgresql too), your work is greatly appreciated. However, I have never had a recent postgresql upgrade work seemlessly, and it is almost always due to issues with tsearch2. :( While searching the internet for magic recipes on how to perform these upgrades that involve tsearch2, I find long complex instruction sets detailing brain-numbingly complex operations (hand edit the schema!): http://julien.danjou.info/blog/index.php/post/2008/05/19/Upgrading-mediawiki-from-PostgreSQL-82-to-83 Also, I have found this blog entry from Greg Mullane which makes it all seem so simple: (Note Tom Lane's comment, which seems to directly relate to the error message I am seeing). http://people.planetpostgresql.org/greg/index.php?/archives/123-MediaWiki-is-Postgres-8.3-compatible.html These are just a 2 examples, there are others. The one common thread shared by all the instructions are that they say different things. How are we, Joe PostgreSQL users on the street, supposed to know which instructions to follow? Have I (very possible) missed some official PostgreSQL instructions? How do we go about triaging tsearch2 problems? -- -**-*-*---*-*---*-*---*-----*-*-----*---*-*---*-----*-----*-*-----*--- Jon Lapham <lapham@jandr.org> Rio de Janeiro, Brasil Personal: http://www.jandr.org/ ***-*--*----*-------*------------*--------------------*---------------
pgsql-general by date: