2

In Cloud SQL Postgres, where superuser permissions are not accessible, how can I prevent a new user from creating tables?

I know that REVOKE CREATE ON SCHEMA public FROM public works, but this seem to require superuser permissions, as I get a WARNING: no privileges could be revoked for "public" error.

1 Answer 1

2

You have to run that statement as the user who owns public.

Sign up to request clarification or add additional context in comments.

2 Comments

I see. The owner in the case is the superuser cloudsqladmin, which can't be accessed. Any way around that?
Unless Google hacked up PostgreSQL's security system, no. If they provide an unsafe default like that without giving you a way to change it, choose another service provider.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.