From: Josh Berkus <josh@agliodbs.com>
To: Jomon Skariah <jomons@aztec.soft.net>
To: pgsql-sql@postgresql.org
Subject: Re: Porting from PL/SQL to PLPGSQL
Date: Wed, 13 Aug 2003 12:35:23 -0700
Message-ID: <200308131235.23507.josh@agliodbs.com> (raw)
In-Reply-To: <F83B457BE363174B8233DE042A1445703ADA9A@maya.aztec.soft.net>
References: <F83B457BE363174B8233DE042A1445703ADA9A@maya.aztec.soft.net>
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 Berkus
Aglio Database Solutions
San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, jomons@aztec.soft.net
Subject: Re: Porting from PL/SQL to PLPGSQL
In-Reply-To: <200308131235.23507.josh@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox