Re: [GENERAL] How can we do STORED PRECEDURE in PostgreSQL?

From: "john huttley" <john(at)mwk(dot)co(dot)nz>
To: "Ed Loehr" <eloehr(at)austin(dot)rr(dot)com>
Cc: "PostgreSQL-general" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] How can we do STORED PRECEDURE in PostgreSQL?
Date: 2000-02-10 04:16:52
Message-ID: 004001bf737d$a93e4580$ca5fa8c0@hisdad.org.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ed, There is big difference between PG's functions and Stored Procedures,
as they are commonly used.

PG's functions return a single value, Stored Procedures return a record set.

This will require some substantial changes to things like pg_tables, to
support what are effectively
'virtual tables'. And the trick is to be able to pass parameters to them
and to use them as if they were 'real'.

Enough people have asked about this that it may appear in a later version,
almost certainly not in V7 (afaik)

Regards

>can we do STORED PRECEDURE in PostgreSQL?

> Michael Poon wrote:
> >
> > How can we do STORED PRECEDURE in PostgreSQL?
>
> Several options exist (C, SQL, PL/pgSQL...). For starters, see CREATE
> FUNCTION at
>
> http://www.postgresql.org/docs/postgres/index.html
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ed Loehr 2000-02-10 05:38:45 Re: [GENERAL] How can we do STORED PRECEDURE in PostgreSQL?
Previous Message Jeff Davis 2000-02-10 01:06:58 Re: [GENERAL] formatting dates?