From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Bruno Baguette <bruno(dot)baguette(at)netcourrier(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Two questions about stored procedures |
Date: | 2003-03-07 05:43:24 |
Message-ID: | 200303070543.h275hOv01569@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Bruno Baguette wrote:
> First of all, I've more or less 200 procedures and I wish to store
> theses procedures inside packages (like Oracle PL/SQL packages). I see
> that feature is in the TODO list, but is this feature is currently under
> development or not ? Or is this feature is planned for a precise release
> ? (maybe 7.4 ???).
No one is working on it and there is no schedule for completion. Patch? :-)
> Second question : Once I've put a stored procedure, is the procedure is
> recompiled every time before the execution or is the stored procedure
> compiled one time when being recorded ? Please note that I dont make use
> of NOW() in theses stored procedure.
PL/pgSQL is compiled the first time it is run in the session. You can
use EXECUTE if you need a query to be reparsed every time, but now() is
automatically handled properly.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | valerian | 2003-03-07 06:01:08 | Re: index on lower(column) is very slow |
Previous Message | Robert Wille | 2003-03-07 05:38:09 | Why are queries with subselects so slow? |