Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id AD83863326D for ; Wed, 21 Apr 2010 10:31:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 20070-09 for ; Wed, 21 Apr 2010 13:31:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gw0-f46.google.com (mail-gw0-f46.google.com [74.125.83.46]) by mail.postgresql.org (Postfix) with ESMTP id 4D92B632FB6 for ; Wed, 21 Apr 2010 10:31:09 -0300 (ADT) Received: by gwj19 with SMTP id 19so1401149gwj.19 for ; Wed, 21 Apr 2010 06:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TxW0Y7Xp4zYlETSOdTbAJoLQczNpOR4uufCIDqpJXOw=; b=Wrr1MYpVReORXlqHenv0pqkd79j2rd+oddM6xamPk1AlPgE/lAVNKRRjt/fazfVacV odWGRTTOcbtkoYRLXXLVcqO2UmyoMP35MBLMAXww+LfkjgEU8CKTZVrdiC94JG+6gXBT a4VghEdJL6FDnhhnTbfsiQbrJ6NSW2iSaEpo0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rQXbL3Uibu+PZWxH9O8G8o8lONJshKXkJxWeVwNyNTRPDaizw/lquc7CeOmjCNOcS6 XGJjgdeILIla1wVx1f6uggU4chzjqNZDhXd/WTjH1cdh+yOwnU3HwyZftA1VK4m3D2Ob gVG1Qggy4rnw8US7PbAojwsifGAJeBa5dv1S8= MIME-Version: 1.0 Received: by 10.150.218.9 with HTTP; Wed, 21 Apr 2010 06:31:07 -0700 (PDT) In-Reply-To: <1271856300.29798.4.camel@azul1> References: <1271233402.10390.5.camel@azul1> <1271781155.6136.57.camel@azul1> <15360.1271782885@sss.pgh.pa.us> <1271856300.29798.4.camel@azul1> Date: Wed, 21 Apr 2010 07:31:07 -0600 Received: by 10.151.129.5 with SMTP id g5mr8577154ybn.260.1271856667892; Wed, 21 Apr 2010 06:31:07 -0700 (PDT) Message-ID: Subject: Re: Problem with insert related to different schemas From: Scott Marlowe To: Gonzalo Aguilar Delgado Cc: pgsql-sql@postgresql.org, Tom Lane Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201004/79 X-Sequence-Number: 34006 On Wed, Apr 21, 2010 at 7:25 AM, Gonzalo Aguilar Delgado wrote: > Hi Tom, > > > >> >> This is a select query. =A0I don't think that's the right error messa= ge. >> >> > Yes, but IS the correct error message. >> >> The query being complained of appears to be a generated foreign key >> checking query. =A0It'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. =A0I 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 ob= ject.