#superuser to creat an issue

40 messages · Page 1 of 1 (latest)

dire pewter
#

Description of the problem - my user in the remote database Elephant does not have superuser rights (as far as I understand). I simply do not understand how these rights can be transferred to him in such a case?
Done - I tried to google how to solve this, but at the moment, as far as I understand, it is not possible to solve it through the Elephant interface itself.
How can it be done correctly?

queen umbra
#
  • is there a reason why "remote" is mentioned? does that affect anything.
  • Superuser as in, a django user with is_superuser set to True?
  • Transferred implies a source and a target, or do you just mean given?
acoustic carbon
#
  • what is the "remote database Elephant" and the "Elephant interface"? Do you mean Postgres, because the database logo is an elephant?
dire pewter
#

Remote implies not local db but db existing in Internet server

dire pewter
queen umbra
#

So i presume you mean your database user, correct?

#

How are you accessing the postgres interface?

dire pewter
dire pewter
queen umbra
#

and do you have access to any other account on that database with superuser rights?

dire pewter
#

No other accounts at all

dire pewter
#

But I think as of now I can do it in other more simple and not extreme way

acoustic carbon
#

Can you explain what you mean by this bit?

does not have superuser rights (as far as I understand).

#

Do you mean a Django user, or do you mean a postgres user?

#

Do you mean your Django app can't connect to the database and create tables, or do you mean your app is working but a user in the Django user's table doesn't have the is_superuser flag set?

acoustic carbon
#

The user Django users to connect to Postgres as?

dire pewter
acoustic carbon
#

Okay. So if that user isn't a superuser, what problem is that causing?

#

Migrations unable to run?

dire pewter
acoustic carbon
#

Tests shouldn't talk to the production database...

dire pewter
dire pewter
dire pewter
acoustic carbon
#

What "remote Postgres" platform are you using, and have you checked their docs for how to create users with the privileges you need as detailed in that documentation about test databases on Postgres?

acoustic carbon
#

Important Notice: ElephantSQL is shutting down. Read all about it in our End of Life Announcement
You probably want to look into moving from that…

#

Are you using the free tier of ElephantSQL?

dire pewter
dire pewter
acoustic carbon
#

Then that's likely your issue. It seems that that plan doesn't let you create additional databases per user, which Django needs to be able to do when running tests.

dire pewter
acoustic carbon
#

No idea I'm afraid. I don't use any hosted Postgres platforms.