Re: ERROR - Mailing list pgsql-general

From Craig Ringer
Subject Re: ERROR
Date
Msg-id 4922566D.2070106@postnewspapers.com.au
Whole thread Raw
In response to ERROR  (Gustavo Rosso <grosso@sadaic.org.ar>)
List pgsql-general
Gustavo Rosso wrote:
> I create a db wiht user postgres, but other users can't no create
> tables, and I give all privileges.
>
> (banco is my db)
>
> grant all on database banco to public;
> grant create on database banco to public;
>
> This is the error:
> *ERROR:  must be owner of relation (table)*

The user running the GRANT command must be the table owner or (I think)
a database superuser.

For table creation, you may need to GRANT the CREATE permission (or ALL
permissions) on the `public' schema. I can't remember off the top of my
head.

--
Craig Ringer

pgsql-general by date:

Previous
From: "Webb Sprague"
Date:
Subject: "INNER JOIN .... USING " in an UPDATE
Next
From: Craig Ringer
Date:
Subject: Re: How to reduce impact of a query.