From: Rod Taylor <rbt@rbt.ca>
To: Jomon Skariah <jomons@aztec.soft.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Porting from PL/SQL to PLPGSQL
Date: Wed, 13 Aug 2003 15:50:16 -0400
Message-ID: <1060804215.11688.76.camel@jester> (raw)
In-Reply-To: <F83B457BE363174B8233DE042A1445703ADA9A@maya.aztec.soft.net>
References: <F83B457BE363174B8233DE042A1445703ADA9A@maya.aztec.soft.net>
> we are facing a few problems with PL/SQL Code..
>
> 1) In Exceptions ORACLE have something called WHEN OTHERS THEN cluase.I
> can't find a replacement for that in
> PostGreSQL.
What does it do?
> 2 Oracle have a function USERENV to get the user session
> information.Is there any replacement available in PostGres. ?
CURRENT_USER (I believe this is per spec)
> 3 Is there any replace available for INSTEAD OF INSERT/DELETE/UPDATE
> for triggers in PostGreSQL.
You might have some luck with Rules (CREATE RULE) if you are writing
data to a different table. Otherwise you're stuck with somewhat more
complicated triggers.
Attachments:
signature.asc (application/pgp-signature, 186B) download
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: rbt@rbt.ca, jomons@aztec.soft.net
Subject: Re: Porting from PL/SQL to PLPGSQL
In-Reply-To: <1060804215.11688.76.camel@jester>
* 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