Re: Need help with clarification on stored procedure support in PostGreSQL database

From: raf <raf(at)raf(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, "Bysani, Ram" <rbysani(at)informatica(dot)com>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Need help with clarification on stored procedure support in PostGreSQL database
Date: 2021-03-09 00:53:00
Message-ID: 20210309005300.gdp2kjoy6bjwynaa@raf.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Mar 08, 2021 at 06:31:56PM -0500, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> raf <raf(at)raf(dot)org> writes:
> > Is there any important different between a stored procedure and
> > a stored function that returns void? I've been using functions
> > for everything but calling them procedures in my head (even though
> > most of them do return a value or result set).
>
> A procedure can commit or rollback a transaction (and then start
> a new one).
>
> regards, tom lane

thanks.

cheers,
raf

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guyren Howe 2021-03-09 04:31:53 Re: Need help with clarification on stored procedure support in PostGreSQL database
Previous Message Tom Lane 2021-03-08 23:31:56 Re: Need help with clarification on stored procedure support in PostGreSQL database