RE: void UPDATE function? - Mailing list pgsql-general

From Francis Solomon
Subject RE: void UPDATE function?
Date
Msg-id NEBBIFFPELJMCJAODNPKMEFACEAA.francis@stellison.co.uk
Whole thread Raw
In response to void UPDATE function?  (Adam Haberlach <adam@newsnipple.com>)
List 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.


pgsql-general by date:

Previous
From: Adam Haberlach
Date:
Subject: void UPDATE function?
Next
From: Anand Raman
Date:
Subject: replacing a word..