Re: Problem with insert related to different schemas

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: Gonzalo Aguilar Delgado <gaguilar(at)aguilardelgado(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Problem with insert related to different schemas
Date: 2010-04-21 15:23:12
Message-ID: 24030.1271863392@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> writes:
> On Wed, Apr 21, 2010 at 7:25 AM, Gonzalo Aguilar Delgado
> <gaguilar(at)aguilardelgado(dot)com> wrote:
>> Maybe but I ran even grant all on schema public for this user to check
>> if this was the problem.

> That doesn't do what you think it does. You need to grant on the actual object.

The error he was getting was about permissions for the schema, though.

One thought: if you're running any moderately recent version of PG,
the FK check query will be run as though by the owner of the table,
not whoever issued the INSERT. Maybe that user doesn't have the right
permissions?

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Harald Fuchs 2010-04-21 16:33:10 Re: LEFT OUTER JOIN issue
Previous Message Oliveiros 2010-04-21 13:42:03 Re: LEFT OUTER JOIN issue