Re: Porting from PL/SQL to PLPGSQL

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Porting from PL/SQL to PLPGSQL
Дата
Msg-id 200308131235.23507.josh@agliodbs.com
обсуждение исходный текст
Ответ на Porting from PL/SQL to PLPGSQL  (Jomon Skariah <jomons@aztec.soft.net>)
Список pgsql-sql
Jomon,

> 1)     In Exceptions ORACLE have something called WHEN OTHERS THEN cluase.I
> can't find a replacement for that in
>             PostGreSQL.

PL/pgSQL currently does not handle exceptions at all.  This is on the TODO
list.

> 2    Oracle have a function USERENV to get the user session
> information.Is there any replacement available in PostGres. ?

There are several variables and tools which provide current user and session
information.  See the "PostgreSQL Administration" section of the
documentation.

> 3    Is there any replace available for INSTEAD OF INSERT/DELETE/UPDATE
> for triggers in PostGreSQL.

In Postgres, this is generally done through the RULES system instead of
triggers.  Please lookup CREATE RULE in the online docs.

--
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: [ADMIN] Why table has drop, but the foreign key still there?
Следующее
От: Rod Taylor
Дата:
Сообщение: Re: Porting from PL/SQL to PLPGSQL