Re: Java Triggers

Поиск
Список
Период
Сортировка
От John Sidney-Woollett
Тема Re: Java Triggers
Дата
Msg-id 448029D4.50202@wardbrook.com
обсуждение исходный текст
Ответ на Java Triggers  ("Jimbo1" <jamestheboarder@googlemail.com>)
Ответы Re: Java Triggers  (Thomas Hallgren <thomas@tada.se>)
Список pgsql-general
I would think the answer is yes.

pljava allows you to create java functions, and triggers invoke functions

eg

CREATE TRIGGER sometrigger
   BEFORE UPDATE
   ON schema.table
   FOR EACH ROW
   EXECUTE PROCEDURE yourfunction();

Here's a link for the pljava language.

http://gborg.postgresql.org/project/pljava/genpage.php?userguide

John

Jimbo1 wrote:
> Hi there,
>
> I'm a very competent Oracle developer, but have never used Postgres.
> There's currently a project taking place where I'm working that is
> developing on an Oracle database, but could potentially be migrated to
> an open source database in the future; possibly Postgres.
>
> There are two questions currently being asked about Postgres:
>
> 1. Can it support triggers?
> 2. Can it support Java Triggers (Java in the database trigger body)?
>
> I know the answer to the first question is a definite "Yes". However, I
> don't know the answer to the second.
>
> Please can anybody help?
>
> Thanks in advance.
>
> James
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org

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

Предыдущее
От: "Marin Alonso, David"
Дата:
Сообщение: Migrate Postgres 7.2 to Postgres 8.1
Следующее
От: Joachim Wieland
Дата:
Сообщение: Re: Querying for strings that match after prefix