Re: Accessing Extension with out Superuser privilege

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Geo P(dot)C(dot)" <pcgeopc(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Accessing Extension with out Superuser privilege
Date: 2015-10-15 14:02:14
Message-ID: 539.1444917734@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Geo P.C." <pcgeopc(at)gmail(dot)com> writes:
> In PostgreSQL server we created an extension with this command CREATE
> EXTENSION "uuid-ossp";

> For our drupal site with user "drupal_user" we are trying to access this
> but getting an error as "function uuid_generate_v4() does not exist"
> When we give privilege for user "drupal_user" as Superuser we are able to
> access it.

It sounds like your superuser account has a default search_path that
includes the schema this function is in, but your drupal_user account
has a different default search_path that doesn't. You could put the
extension in a different schema, or change drupal_user's search_path.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2015-10-15 14:23:26 Re: Accessing Extension with out Superuser privilege
Previous Message Geo P.C. 2015-10-15 13:58:32 Accessing Extension with out Superuser privilege