Re: Re: Not to start a flame war but what does Oracle have that Postgresql does not?
В списке pgsql-novice по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Re: Not to start a flame war but what does Oracle have that Postgresql does not? |
| Дата | |
| Msg-id | 29418.1300898947@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Not to start a flame war but what does Oracle have that Postgresql does not? (Thomas Kellerer <spam_eater@gmx.net>) |
| Ответы |
Re: Re: Not to start a flame war but what does Oracle have that Postgresql does not?
|
| Список | pgsql-novice |
Thomas Kellerer <spam_eater@gmx.net> writes:
> Rob Richardson, 23.03.2011 16:40:
>> What do you mean by "real stored procedures"? I only know PostGreSQL
>> stored procedures. What are they missing?
> Postgres only has functions, no procedures.
Ignoring trivial syntax differences, I think the important point is that
in Oracle procedures execute outside the database engine, so to speak.
That means they can start and commit transactions. In Postgres,
functions are called inside a transaction and they can't commit it or
start a new one. They can run sub-transactions (savepoints) but they
can't commit a whole transaction. So for example you can never make
partial results of a function's execution visible to another session.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера