Re: Obtaining Firing Statement clause in (pl/perlu) Trigger Function

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Obtaining Firing Statement clause in (pl/perlu) Trigger Function
Дата
Msg-id 200505231026.27689.josh@agliodbs.com
обсуждение исходный текст
Ответ на Obtaining Firing Statement clause in (pl/perlu) Trigger Function  (Stef <stef@ummon.com>)
Список pgsql-hackers
Stef,

>     I am trying to write a function/Trigger in pl/perl (although any
> other language which allows this is perfectly fine with me :) and I need to
> find the firing statement. I understand that if the trigger was fired in
> a long sequence, then of course, the calling statement will be the
> previous trigger.

Talk to David Fetter (author of DBI-Link) about this.  You're also probably 
unnecessarily replicating his work.

It's not currently possible, unfortunately.   Tge real way to do this would be 
through RULES.   However, RULEs currently don't give you a handle on query 
substructures like where clauses (let alone join clauses).  DF and I have 
talked about it, but it would take some major back-end hacking to enable 
it.  :-(

-- 
Josh Berkus
Aglio Database Solutions
San Francisco


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

Предыдущее
От: Stef
Дата:
Сообщение: Obtaining Firing Statement clause in (pl/perlu) Trigger Function
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Speeding up the Postgres lexer