Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id BD8E89FB77B for ; Fri, 22 Jun 2007 19:05:58 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 15819-08 for ; Fri, 22 Jun 2007 19:05:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 58B579FB905 for ; Fri, 22 Jun 2007 19:05:55 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5MM5rpO028707; Fri, 22 Jun 2007 18:05:53 -0400 (EDT) To: Kris Jurka cc: tomasz brymora , pgsql-jdbc@postgresql.org, pgsql-general@postgresql.org Subject: Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3 In-reply-to: References: <991681.73756.qm@web56610.mail.re3.yahoo.com> Comments: In-reply-to Kris Jurka message dated "Fri, 22 Jun 2007 17:33:23 -0400" Date: Fri, 22 Jun 2007 18:05:52 -0400 Message-ID: <28706.1182549952@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/1367 X-Sequence-Number: 116190 Kris Jurka writes: > On Fri, 22 Jun 2007, tomasz brymora wrote: >> I've build a script in pgAdmin 3 ( os x 10.4 on ppc) that does a select, >> some left outer joins and puts the results into a temporary table. Works >> great when I run in pgAdmin. >> >> Then I try to use in an iBatis sqlmap as a 'select' and get this when >> trying to execute it: >> >> org.postgresql.util.PSQLException: ERROR: must be member of role >> "postgres" > Knowing the SQL that it actually executed would be valuable. Indeed. A quick scan of the backend source says that that message is only issued if you try to give away ownership of something to a role you are not a member of (this means ALTER OWNER and the options of CREATE DATABASE/CREATE SCHEMA that give the object some other owner than yourself). So there's something you didn't tell us about what that script does. regards, tom lane