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

Поиск
Список
Период
Сортировка
От john huttley
Тема Re: [GENERAL] How can we do STORED PRECEDURE in PostgreSQL?
Дата
Msg-id 004001bf737d$a93e4580$ca5fa8c0@hisdad.org.nz
обсуждение исходный текст
Ответ на How can we do STORED PRECEDURE in PostgreSQL?  ("Michael Poon" <i_o_wd@hotmail.com>)
Список 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
>



В списке pgsql-general по дате отправления:

Предыдущее
От: "slamet pramono"
Дата:
Сообщение: UNSUBSCRIBE
Следующее
От: Ed Loehr
Дата:
Сообщение: Re: [GENERAL] How can we do STORED PRECEDURE in PostgreSQL?