agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
[Pljava-dev] A couple PL/Java questions
2+ messages / 0 participants
[nested] [flat]

* [Pljava-dev] A couple PL/Java questions
@ 2005-05-20 22:32 
  2005-05-21 06:31 ` [Pljava-dev] A couple PL/Java questions 
  0 siblings, 1 reply; 2+ messages in thread

From:  @ 2005-05-20 22:32 UTC (permalink / raw)

Hi,
    I've been looking at PL/Java, and I'm pretty impressed so far.  I'm 
still unclear on a couple things:
1) Is is possible to write Java code directly embedded in the function 
are is all code in .jar files found in the classpath?
2) Is it possible to write a PL/Java function that returns a tuple with 
the number of of elements determined at runtime (to be used with a 
SELECT * from myfunc(arg);  )?

Thanks,

Eric





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

* [Pljava-dev] A couple PL/Java questions
  2005-05-20 22:32 [Pljava-dev] A couple PL/Java questions 
@ 2005-05-21 06:31 ` 
  0 siblings, 0 replies; 2+ messages in thread

From:  @ 2005-05-21 06:31 UTC (permalink / raw)

Eric E wrote:

> Hi,
>    I've been looking at PL/Java, and I'm pretty impressed so far.  I'm 
> still unclear on a couple things:
> 1) Is is possible to write Java code directly embedded in the function 
> are is all code in .jar files found in the classpath?

All code is in .jar files. Anything else would require a full blown Java 
parser/compiler.

> 2) Is it possible to write a PL/Java function that returns a tuple 
> with the number of of elements determined at runtime (to be used with 
> a SELECT * from myfunc(arg);  )?

Yes, you can write a function that returns SETOF RECORD.

Regards,
Thomas Hallgren






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


end of thread, other threads:[~2005-05-21 06:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-05-20 22:32 [Pljava-dev] A couple PL/Java questions 
2005-05-21 06:31 ` 

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox