I get the following error when doing manag.py migrate askbot
File "/home/graeme/iqapy/lib/python2.5/site-packages/askbot/management/commands/init_postgresql_full_text_search.py", line 19, in handle_noargs
cursor.execute("CREATE LANGUAGE plpgsql")
psycopg2.ProgrammingError: must be superuser to create procedural language
It depends on the version of postrges and how the admins had configured it.
In postgres <= 8.2 you do need to be a superuser to run that command and you may have additional problems running the trigger setup that is applied later in the same migration. I've written the full text trigger code using version 8.3 manual.
On versions >= 8.3 database can be configured so that database owner can run it, the default setting allows it.
If do not have access to postgres 8.3 and higher, then it might be easier for you to use MySQL.
I'll make the migration fail on this condition more softly, by disabling the full text search in such cases. The problem is that triggers for the full text indexing are written in plpgsql procedural language that needs to be created in your database.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2010-10-30 21:11:21 -0500
Seen: 89 times
Last updated: Oct 31 '10
Migration problem with Postgresql 9
ImportError: No module named XYZ. What to do?
How to install python easy_install (python distutils) in root or non-root account?
Is my shared host good enough for Django applications?
Where are the badges in a fresh install? [fixed]
Site owners - don't forget to adjust your privacy policy
How to install askbot on free hosting account at alwaysdata.com?
Why do I get a "No module named askbot.deployment" error on Windows?
"App with label forum could not be found" when running migrate
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.