Error while creating uuid-ossp extension
I am installing uuid-ossp
extension using the following query
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
But I am getting the following error
ERROR: permission denied to create extension "uuid-ossp"
HINT: Must be superuser to create this extension.
1 Answer
5 years ago by Eleven
As the error says give superuser permissions to your current user or try installing with superuser
1. Quit from current user if you are already logged in
\q
2. Connext with postgres
user
psql postgres
3. Create extension
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
5 years ago by Karthik Divi