When my postgres function is tries to create a new sequence, it returns a
permission denied error. It looks like the only way to make it work is to give
Create permission on schema using the below statement.
GRANT CREATE ON SCHEMA public to "myuser"
But, this will allow the user to create any other type of object as well, including tables. How can we control this? I want my user to be able to create a sequence, but not tables.
Note: Create is not a valid grant on Sequences.