Re: Generic triggers ?

Поиск
Список
Период
Сортировка
От Andy Dale
Тема Re: Generic triggers ?
Дата
Msg-id faa313130704241043mb47c5barb76c90d518740c4f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Generic triggers ?  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Thanks for the quick response, i think will try it with python or perl.


Cheers,

Andy

On 24/04/07, Richard Huxton < dev@archonet.com> wrote:
Andy Dale wrote:
> Hi,
>
> I wanted to setup a simple "generic" type trigger.  What a mean by generic
> is that i don't want to hardcode the
> NEW.<column> or OLD.<column> calls, i searched for a way to loop over
> the NEW/OLD rowtypes but could not figure out how it should be done.

Don't use plpgsql - that's the secret. Try pltcl or plperl or similar.
PL/pgsql is a bit too "statically typed" for it.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: "George Pavlov"
Дата:
Сообщение: Re: PG service restart failure (start getting ahead of stop?)
Следующее
От: "Michael Nolan"
Дата:
Сообщение: WAL files, warm spares and minor versions