From: | "David Johnston" <polobo(at)yahoo(dot)com> |
---|---|
To: | "'Leon Match'" <leon(dot)match(at)convergia(dot)net>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Call procedure from a Job, Test a Job in pgAdmin? |
Date: | 2011-06-21 14:30:26 |
Message-ID: | 016301cc301f$c4062c00$4c128400$@yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
What's a Job?
SELECT function() is the simpliest way to way to call a function.
What does "requests_curr_req()" do?
EXECUTE function() will "work" depending upon what function does.
So, what do you mean "nothing worked"? Errors, zero results (but no
failure), what?
You may want to look at section 39.12 in the documentation as well "Porting
from Oracle PL/SQL" (section 39 itself is going to be helpful as well).
Have you considered professional support services that have previously done
Oracle migrations? And no, I am not one of them.
David J.
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Leon Match
Sent: Tuesday, June 21, 2011 10:00 AM
To: pgsql-general(at)postgresql(dot)org
Subject: [GENERAL] Call procedure from a Job, Test a Job in pgAdmin?
Hello,
Could you please advise on how to call a Procedure (Function) from a Job?
I have created a Job with one step, and a scheduler.
The Job is suppose to run every minute, and call a procedure (function).
I tried different scenarios in a Step Definition:
requests_curr_req();
SELECT requests_curr_req();
EXECUTE requests_curr_req();
EXECUTE PROCEDURE requests_curr_req();
but nothing worked!?
Could you please advise the right way to do that?
Also, what would be the way to test in pgAdmin, if the Job is running at
all?
Thank you,
Leon Match
leon(dot)match(at)convergia(dot)net
From | Date | Subject | |
---|---|---|---|
Next Message | Leon Match | 2011-06-21 14:38:59 | Re: Call procedure from a Job, Test a Job in pgAdmin? |
Previous Message | Scott Ribe | 2011-06-21 14:28:07 | Re: 2 questions re RAID |