Ask Your Question
1

Need to be DB superuser to migrate askbot?

asked 2010-10-30 21:11:21 -0500

graeme gravatar image graeme
317 16 5 15
http://investmentqa.com/

updated 2010-10-31 17:05:37 -0500

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

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
delete close flag offensive retag edit

Comments

What is the version of your postgres? Evgeny ( 2010-10-31 16:11:50 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2010-10-31 16:18:10 -0500

Evgeny gravatar image Evgeny flag of Chile
11009 50 84 182
http://askbot.org/

updated 2010-10-31 16:39:53 -0500

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.

link publish delete flag offensive edit

Comments

Thanks, it is the postgres version. I will try with MySQL. graeme ( 2010-10-31 16:57:36 -0500 )edit
Will it be possible to enable the full text search if I move to a newer version of postgres later on? graeme ( 2010-11-11 06:39:02 -0500 )edit
Yes, you will be able to migrate to Postgres, I'll try to migrate this site by Monday. MySQL deployment actually has full text search, but it cannot do relevance ranking. Evgeny ( 2010-11-11 10:33:41 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

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 site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

Asked: 2010-10-30 21:11:21 -0500

Seen: 89 times

Last updated: Oct 31 '10