Re: Problem with insert related to different schemas

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

On Wed, Apr 21, 2010 at 7:25 AM, Gonzalo Aguilar Delgado
<gaguilar(at)aguilardelgado(dot)com> wrote:
> Hi Tom,
>
>
>
>> >> This is a select query.  I don't think that's the right error message.
>>
>> > Yes, but IS the correct error message.
>>
>> The query being complained of appears to be a generated foreign key
>> checking query.  It's not surprising it would appear in the context
>> of an insert.
>
> Yes, that's what I think too...
>
>>
>> > It appeared just after upgrading
>> > to 8.4 as 8.3 had no problem processing this query.
>>
>> You've either changed the permissions on schema public from what they
>> were in the old installation, or linked an FK constraint to the wrong
>> table.  I see no reason to think there is either a bug or a version
>> difference here.
>
> 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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Oliveiros 2010-04-21 13:42:03 Re: LEFT OUTER JOIN issue
Previous Message Gonzalo Aguilar Delgado 2010-04-21 13:25:00 Re: Problem with insert related to different schemas