| From: | "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> |
|---|---|
| To: | "Gerhard Heift *EXTERN*" <ml-postgresql-20081012-3518(at)gheift(dot)de>, "PostgreSQL general" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: fire trigger for a row without update? |
| Date: | 2009-01-15 07:41:46 |
| Message-ID: | D960CB61B694CF459DCFB4B0128514C202F1B84C@exadv11.host.magwien.gv.at |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-hackers |
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | m zyzy | 2009-01-15 07:47:33 | one-click installer postgresql-8.3.5-1-linux.bin failed |
| Previous Message | Yi Zhao | 2009-01-15 07:37:57 | how can I returns a set of integer in a plpgsql function? |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Marcus Kempe | 2009-01-15 09:19:56 | Re: async notification patch for dblink |
| Previous Message | Yi Zhao | 2009-01-15 07:37:57 | how can I returns a set of integer in a plpgsql function? |