| From: | Thomas Hallgren <thhal(at)mailblocks(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: question about 8.1 and stored procedures |
| Date: | 2005-03-20 20:11:31 |
| Message-ID: | d1kl9q$u63$1@sea.gmane.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Oleg Bartunov wrote:
> On Sun, 20 Mar 2005, Joshua D. Drake wrote:
>
>>
>>>>
>>>> My understanding is that 8.1 will have a much more mature
>>>> implementation of
>>>> stored procedures versus UDFs (Which we have had forever).
>>>
>>>
>>>
>>> What's the difference between UDF and stored procedure ?
>>>
>> Here are a couple of GGIYF references:
>>
>> http://builder.com.com/5100-6388-1045463.html
>> http://blogs.pingpoet.com/vbguru/archive/2004/04/29/535.aspx
>>
>> They are similar but they offer different functionality. At least in
>> the sense of the other databases.
>>
>
> Hmm, the only real difference I see - is that SP are precompiled.
> I think we should clearly outline what is SP and what is UDF and do we
> are working on SP or just improving and extending our functions.
>
I always thought that the big difference was that a SP can start and end
top level transactions whereas UDFs must execute within the scope of a
transaction started by the caller. The above article doesn't mention
this at all.
Regards,
Thomas Hallgren
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alex Adriaanse | 2005-03-20 22:08:31 | Tracking row updates |
| Previous Message | Tom Lane | 2005-03-20 18:38:51 | Re: question about 8.1 and stored procedures |