Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 33E0A9FA46C for ; Fri, 22 Jun 2007 18:29:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 69801-08 for ; Fri, 22 Jun 2007 18:29:24 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from web56610.mail.re3.yahoo.com (web56610.mail.re3.yahoo.com [66.196.97.54]) by postgresql.org (Postfix) with SMTP id 4D32F9FC338 for ; Fri, 22 Jun 2007 18:29:26 -0300 (ADT) Received: (qmail 73931 invoked by uid 60001); 22 Jun 2007 21:29:25 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=0MLXiC8+kQQSI6YGIjAwGO+N36b67Bcv38nX2NwR2GjUidhyzoZvKyiET3IUCw3XDdW9aKVf8hZAoIsHT2murbE6CjTp6OQeFG5YKo0baPWoGhE3a4whFJnuSTxJC3aC+a0E02WzPese1vp3F1MsHrr5Wu4+Emn0+0enOuEJeFQ=; X-YMail-OSG: HU76gI8VM1mu_hmYGLdjvySZMx5asuPZpvWbcnAe8QtI4jzKnR8W.s.m.SB7Da6iujQfV69kCQB6arEQELgLulyM5fFS2KM40h8d3sLURNetbhiHIDBvTBFnBmhEUTX6QaPgakZqxN_TAvk- Received: from [67.79.129.55] by web56610.mail.re3.yahoo.com via HTTP; Fri, 22 Jun 2007 14:29:24 PDT Date: Fri, 22 Jun 2007 14:29:24 -0700 (PDT) From: tomasz brymora Subject: creating temporary table PostgreSql 8.1 and iBatis 2.3 To: pgsql-jdbc@postgresql.org Cc: pgsql-general@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-853540836-1182547764=:73756" Content-Transfer-Encoding: 8bit Message-ID: <991681.73756.qm@web56610.mail.re3.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=4.152 tagged_above=0 required=5 tests=BAYES_50=0.001, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, DNS_FROM_RFC_WHOIS=1.447, HTML_00_10=0.795, HTML_MESSAGE=0.001 X-Spam-Level: **** X-Archive-Number: 200706/1363 X-Sequence-Number: 116186 --0-853540836-1182547764=:73756 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Greetings! 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" Other than that queries run fine. I'm thinking the problem is on the db admin side of things, but I'm at a loss as to how to start fixing it. I'll greatly appreciate any feedback. Thank you in advance. --0-853540836-1182547764=:73756 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Greetings!

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"

Other than that queries run fine.
I'm thinking the problem is on the db admin side of things, but I'm at a loss as to how to start fixing it.

I'll greatly appreciate any feedback.

Thank you in advance.

--0-853540836-1182547764=:73756--