From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kris Jurka <books@ejurka.com>
Cc: tomasz brymora <tomekpilot@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3
Date: Fri, 22 Jun 2007 18:05:52 -0400
Message-ID: <28706.1182549952@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSO.4.64.0706221732260.21640@leary.csoft.net>
References: <991681.73756.qm@web56610.mail.re3.yahoo.com>
<Pine.BSO.4.64.0706221732260.21640@leary.csoft.net>
Kris Jurka <books@ejurka.com> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, books@ejurka.com, tomekpilot@yahoo.com, pgsql-general@postgresql.org
Subject: Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3
In-Reply-To: <28706.1182549952@sss.pgh.pa.us>
References: <991681.73756.qm@web56610.mail.re3.yahoo.com> <Pine.BSO.4.64.0706221732260.21640@leary.csoft.net> <28706.1182549952@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox