Moving from Sybase to PostgreSQL - Stored Procedures

Поиск
Список
Период
Сортировка
От Andre Schnoor
Тема Moving from Sybase to PostgreSQL - Stored Procedures
Дата
Msg-id 35snn5F4rg14eU1@individual.net
обсуждение исходный текст
Ответы Re: Moving from Sybase to PostgreSQL - Stored Procedures  (Thomas Hallgren <thhal@mailblocks.com>)
Список pgsql-general
Hi,

I'm moving from Sybase to pgsql but have problems with stored procedures.
The typical procedure uses

a) named parameters,
b) local variable declarations and assignments
c) transactions
d) cursors, views, etc.

I can't seem to find these things in the Postgres function syntax.
Procedures can be as long as 20-250 lines, performing heavy data
manipulation tasks, running from a few seconds up to several hours. Database
size is approx. 20GB.

Functions in pgsql are very limited compared to Sybase procedures, so I'll
have to find a workaround somehow. Perhaps somebody can point me to examples
or hints regarding this issue.

Thanks in advance!

Andre





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

Предыдущее
От: "Sim Zacks"
Дата:
Сообщение: Re: Export a column in a view without "announcing" it?
Следующее
От: "Andrey V. Semyonov"
Дата:
Сообщение: inet-type sequence