pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
creating temporary table PostgreSql 8.1 and iBatis 2.3
3+ messages / 3 participants
[nested] [flat]

* creating temporary table PostgreSql 8.1 and iBatis 2.3
@ 2007-06-22 21:29 tomasz brymora <tomekpilot@yahoo.com>
  2007-06-22 21:33 ` Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3 Kris Jurka <books@ejurka.com>
  0 siblings, 1 reply; 3+ messages in thread

From: tomasz brymora @ 2007-06-22 21:29 UTC (permalink / raw)
  To: pgsql-jdbc; +Cc: pgsql-general@postgresql.org

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.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3
  2007-06-22 21:29 creating temporary table PostgreSql 8.1 and iBatis 2.3 tomasz brymora <tomekpilot@yahoo.com>
@ 2007-06-22 21:33 ` Kris Jurka <books@ejurka.com>
  2007-06-22 22:05   ` Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Kris Jurka @ 2007-06-22 21:33 UTC (permalink / raw)
  To: tomasz brymora <tomekpilot@yahoo.com>; +Cc: pgsql-jdbc; pgsql-general@postgresql.org



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"
>
> 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.
>

Knowing the SQL that it actually executed would be valuable.

Kris Jurka




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3
  2007-06-22 21:29 creating temporary table PostgreSql 8.1 and iBatis 2.3 tomasz brymora <tomekpilot@yahoo.com>
  2007-06-22 21:33 ` Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3 Kris Jurka <books@ejurka.com>
@ 2007-06-22 22:05   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2007-06-22 22:05 UTC (permalink / raw)
  To: Kris Jurka <books@ejurka.com>; +Cc: tomasz brymora <tomekpilot@yahoo.com>; pgsql-jdbc; pgsql-general@postgresql.org

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-06-22 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-06-22 21:29 creating temporary table PostgreSql 8.1 and iBatis 2.3 tomasz brymora <tomekpilot@yahoo.com>
2007-06-22 21:33 ` Kris Jurka <books@ejurka.com>
2007-06-22 22:05   ` Tom Lane <tgl@sss.pgh.pa.us>

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