From: Josh Berkus <josh@agliodbs.com>
To: Nils Zonneveld <nils@mbit.nl>
To: pgsql-sql@postgresql.org
Subject: Re: Re: Same question about PostgreSql
Date: Tue, 17 Apr 2001 21:24:18 -0700
Message-ID: <web-41031@davinci.ethosmedia.com> (raw)
In-Reply-To: <3ADCC2D0.5BAB0A25@mbit.nl>
Nils,
> I always thought that Pl/PgSQL functions where 'stored procedures'.
> Probably I'm wrong, but whats the difference between a Pl/PgSQL
> function
> and a stored procedure? (just curious).
Postgres functions have really expanded the concept of function, to the
point of *almost* being stored procedures. However, there are still a
few things missing:
1. Stored procedures must be able to return a rowset, possibly mutiple
rowsets.
2. Stored procedures usually accept an indefinite number of parameters.
3. Stored procedures should be capable of logging their activites.
4. Stored procedures should have access to the full range of DB control
language, includign cursors, transactions, and error handling.
Of the 4. I'm only certain that 1. is part of the SQL92 spec. Any more
authoritative opinions?
-Josh
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, nils@mbit.nl
Subject: Re: Same question about PostgreSql
In-Reply-To: <web-41031@davinci.ethosmedia.com>
References: <3ADCC2D0.5BAB0A25@mbit.nl> <web-41031@davinci.ethosmedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox