pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Gustavo Rosso <grosso@sadaic.org.ar>
Cc: pgsql-general@postgresql.org
Subject: Re: ERROR
Date: Tue, 18 Nov 2008 14:45:17 +0900
Message-ID: <4922566D.2070106@postnewspapers.com.au> (raw)
In-Reply-To: <492188D2.2050805@sadaic.org.ar>
References: <492188D2.2050805@sadaic.org.ar>

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



view thread (40+ messages)  latest in thread

Message-ID: <4922566D.2070106@postnewspapers.com.au>
Permalink:  ../4922566D.2070106@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4922566D.2070106@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: craig@postnewspapers.com.au, grosso@sadaic.org.ar
  Subject: Re: ERROR
  In-Reply-To: <4922566D.2070106@postnewspapers.com.au>
  References: <492188D2.2050805@sadaic.org.ar> <4922566D.2070106@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox