| From: | John R Pierce <pierce(at)hogranch(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: stored procedures (packages) |
| Date: | 2011-09-30 08:02:51 |
| Message-ID: | 4E8577AB.2050209@hogranch.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 09/30/11 12:57 AM, J.V. wrote:
> I need to run a series of stored procedures, what is the best way to
> organize and run.
>
> Ideally would like something like Oracle PL/SQL where I can put all
> methods in one file and create a main() method
>
> then just : select main() to have them all run.
in function main, have
select function1();
select function2();
...
> Also is it possible to call a stored function or procedure from
> another stored proc/function?
see above.
note that postgres doesn't acctually have stored procedures, it only has
functions.
--
john r pierce N 37, W 122
santa cruz ca mid-left coast
| From | Date | Subject | |
|---|---|---|---|
| Next Message | John R Pierce | 2011-09-30 08:04:49 | Re: stored procs / data types |
| Previous Message | J.V. | 2011-09-30 07:59:42 | stored procs / data types |