django.db.utils.ProgrammingError:必须是函数to_tsvector的所有者

时间:2016-01-12 08:07:33

标签: python django postgresql traceback

在部署期间,我的项目出现了错误" python manage.py migrate":

  File "/Users/paus/project/api/ENV/lib/python2.7/site-packages/django/db/migrations/operations/special.py", line 117, in database_forwards
    self.code(from_state.render(), schema_editor)
  File "/Users/paus/project/api/sn/migrations/0012_user_full_name_full_text.py", line 8, in create_index
    schema_editor.execute('ALTER FUNCTION to_tsvector(text) IMMUTABLE')
  File "/Users/paus/project/api/ENV/lib/python2.7/site-packages/django/db/backends/schema.py", line 111, in execute
    cursor.execute(sql, params)
  File "/Users/paus/project/api/ENV/lib/python2.7/site-packages/django/db/backends/utils.py", line 81, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/Users/paus/project/api/ENV/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
  File "/Users/paus/project/api/ENV/lib/python2.7/site-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/Users/paus/project/api/ENV/lib/python2.7/site-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: must be owner of function to_tsvector

我该如何处理?它与Postgresql有什么关系我们用的是什么?在哪里解决?

感谢您的建议!

0 个答案:

没有答案