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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: raf <raf(at)raf(dot)org>
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-08 23:31:56
Message-ID: 1932630.1615246316@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message raf 2021-03-09 00:53:00 Re: Need help with clarification on stored procedure support in PostGreSQL database
Previous Message Andrus 2021-03-08 22:23:37 Re: Log files polluted with permission denied error messages after every 10 seconds