Thread: difference between function and stored procedure

difference between function and stored procedure

From
"Marcelo de Moraes Serpa"
Date:
Hello list,

Is there any difference between a PGSQL Function and Stored Procedure in PostgreSQL (8.2) ?

If so, what difference? Is the SQL used to create a SP different from the SQL used to create a function ?

Thanks in advance,

Marcelo.

Re: difference between function and stored procedure

From
Michael Glaesemann
Date:
On Aug 28, 2007, at 8:24 , Marcelo de Moraes Serpa wrote:

> Is there any difference between a PGSQL Function and Stored
> Procedure in
> PostgreSQL (8.2) ?

No.


Michael Glaesemann
grzm seespotcode net



Re: difference between function and stored procedure

From
"Scott Marlowe"
Date:
On 8/28/07, Marcelo de Moraes Serpa <celoserpa@gmail.com> wrote:
> Hello list,
>
> Is there any difference between a PGSQL Function and Stored Procedure in
> PostgreSQL (8.2) ?
>
> If so, what difference? Is the SQL used to create a SP different from the
> SQL used to create a function ?

Strictly speaking, PostgreSQL doesn't have stored procedures.  It just
has functions that return type of void (or return only error codes
etc.)

So, no there's no difference really.