Re: ERROR

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Gustavo Rosso <grosso(at)sadaic(dot)org(dot)ar>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR
Date: 2008-11-18 05:45:17
Message-ID: 4922566D.2070106@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

  • ERROR at 2008-11-17 15:08:02 from Gustavo Rosso

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2008-11-18 05:53:33 Re: How to reduce impact of a query.
Previous Message Webb Sprague 2008-11-18 04:48:46 "INNER JOIN .... USING " in an UPDATE