RE: void UPDATE function?

From: "Francis Solomon" <francis(at)stellison(dot)co(dot)uk>
To: "Adam Haberlach" <adam(at)newsnipple(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: RE: void UPDATE function?
Date: 2000-12-28 18:05:14
Message-ID: NEBBIFFPELJMCJAODNPKMEFACEAA.francis@stellison.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Adam,

Would this work?

UPDATE bugs SET somefield=somefield WHERE pkey='3';

i.e. set a field to itself. I don't know whether or not this would be
optimised away - but it could be worth a try.

Hope this helps.

Francis Solomon

>
> What is a good way to trigger an UPDATE of a row
> without actually
> changing anything? I have a trigger that will update the timestamp
> of a record, and in this case, want to trigger it because I am
> adding a related row in another table.
>
> UPDATE bugs WHERE pkey='3'
>
> Doesn't seem to work.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Anand Raman 2000-12-28 19:12:47 replacing a word..
Previous Message Adam Haberlach 2000-12-28 18:02:23 void UPDATE function?