From: | Raymond O'Donnell <rod(at)iol(dot)ie> |
---|---|
To: | Ovid <curtis_ovid_poe(at)yahoo(dot)com>, JotaComm <jota(dot)comm(at)gmail(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: permission denied for relation |
Date: | 2014-01-30 14:21:30 |
Message-ID: | 52EA5FEA.1040200@iol.ie |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 30/01/2014 14:13, Ovid wrote:
>> First: CREATE ROLE and CREATE DATABASE;
>
>> After: CREATE TABLEs;
>
>> Last: GRANT SELECT,INSERT,UPDATE and DELETE.
>
> OK, I dropped the database. Since I have the user already created, I
> recreated the database. Then I created all of the tables. Then I did this:
>
> postgres=# GRANT SELECT ON ALL TABLES IN SCHEMA public TO veure_user;
> GRANT
> postgres=# GRANT INSERT ON ALL TABLES IN SCHEMA public TO veure_user;
> GRANT
> postgres=# GRANT UPDATE ON ALL TABLES IN SCHEMA public TO veure_user;
> GRANT
> postgres=# GRANT DELETE ON ALL TABLES IN SCHEMA public TO veure_user;
> GRANT
>
> Same error: permission denied for relation "users". And when I do \dt:
>
> Schema | Name | Type | Owner
> --------+-------------------+-------+------------
> public | users | table | veure_user
>
> So I'm still missing something here :)
>
> I'm sure my password is correct because this works (password in .pgpass,
> though the fact that I'm connecting suggests that my password is fine):
Possibly a silly question, but are you sure that your software is
connecting as user "veure_user"?
Ray.
--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2014-01-30 14:53:32 | Re: permission denied for relation |
Previous Message | Ovid | 2014-01-30 14:13:56 | Re: permission denied for relation |