Re: fire trigger for a row without update? - Mailing list pgsql-general

From Albe Laurenz
Subject Re: fire trigger for a row without update?
Date
Msg-id D960CB61B694CF459DCFB4B0128514C202F1B84C@exadv11.host.magwien.gv.at
Whole thread Raw
In response to fire trigger for a row without update?  (Gerhard Heift <ml-postgresql-20081012-3518@gheift.de>)
List pgsql-general
Gerhard Heift wrote:
> is it possible to call a trigger for a row in a table without updating
the
> row? I want to do it in plpgsql.
>
> Something like UPDATE table WHERE id = 10;
> or PERFORM table.trigger('UPDATE', row) WHERE id = 10;

Think twice if you really need that - it sounds a little odd.

But you could do:

UPDATE tab SET id = 10 WHERE id = 10;

or something similar. This would of course create a new row version, but
it would do what you want.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: "Justin Pasher"
Date:
Subject: Autovacuum daemon terminated by signal 11
Next
From: "m zyzy"
Date:
Subject: one-click installer postgresql-8.3.5-1-linux.bin failed