From: | Dave Coventry <dgcoventry(at)gmail(dot)com> |
---|---|
To: | |
Cc: | pgsql-general General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Insufficient privileges. |
Date: | 2011-07-07 17:26:40 |
Message-ID: | CACbSWtYYDjFbWciDcMfGy0nwxUfvhQm8aqc-z1sjwki699+S_w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi Rick,
Thanks for the response.
What is "the sequence"? and how do I grant the privileges needed to
insert data into the database?
Is it a postgres issue?
~ Dave
On 7 July 2011 19:05, Rick Genter <rick(dot)genter(at)gmail(dot)com> wrote:
>
>
> On Thu, Jul 7, 2011 at 10:03 AM, Dave Coventry <dgcoventry(at)gmail(dot)com> wrote:
>>
>> I am getting the following error message in my Drupal install.
>>
>> PDOException: SQLSTATE[42501]: Insufficient privilege: 7 ERROR:
>> permission denied for sequence currenttest_id_seq: INSERT INTO
>> currentTest (score) VALUES (:db_insert_placeholder_0);
>>
>> This is a table that I created using the postgres super user.
>>
>> I have tried to grant the drupal user (drupaluser) privileges to the table
>> with:
>>
>> GRANT ALL ON currentTest to drupaluser;
>>
>> but this fails to resolve the issue.
>>
>> Can anyone suggest a way forward?
>
> From the message I'd say that the drupal user doesn't have access to the
> sequence, which is a separate object from the table.
>
> --
> Rick Genter
> rick(dot)genter(at)gmail(dot)com
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Rick Genter | 2011-07-07 17:39:48 | Re: Insufficient privileges. |
Previous Message | Rick Genter | 2011-07-07 17:05:37 | Re: Insufficient privileges. |