Re: Difference between function and procedure?

From: Anastasios Hatzis <ahatzis(at)gmx(dot)net>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: PostgreSQL general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Difference between function and procedure?
Date: 2006-07-19 18:42:15
Message-ID: 44BE7D07.6030403@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Merlin Moncure wrote:
> there are differences. PostgreSQL only really supports functions and
> on the lists they are used interchangably. on the -hacker list about
> a year back there was a good discussion about implementing true SP and
> why they would be needed.
>
> mainly, SP are not externally transactional, making them useful for
> maintenance type work, such as vacuum (cant be run from inside a
> transaction) or multiple statement data load via 'copy' commands.
>
> i thnk (not sure) that SP can not be inlined into queries like
> functions. this would be an important distinction.
>
Merlin,

thank you for clarifying this. So, given your hint, I didn't miss SP
until now, but this will probably change in future. ;-)

Anastasios

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2006-07-19 19:10:57 Re: Linking Tables from 2 databases
Previous Message Léo Matos 2006-07-19 17:59:10 Alter Sequencie