Re: minimal update

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: "Decibel!" <decibel(at)decibel(dot)org>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: minimal update
Date: 2007-11-12 16:02:46
Message-ID: 47387926.9050305@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Decibel! wrote:
> On Nov 2, 2007, at 10:49 AM, Andrew Dunstan wrote:
>> update tname set foo = bar ... where foo is null or foo <> bar ...
>
> FYI, you should be able to do WHERE foo IS DISTINCT FROM bar instead.

True, that's a bit nicer. It's still more than somewhat ugly and fragile
if there a lot of foos and the bars are complex expressions.

cheers

andrew

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-11-12 16:08:43 Re: [hibernate-team] PostgreSQLDialect
Previous Message Decibel! 2007-11-12 15:54:16 Re: minimal update