Re: Updatable view does not work [oops, quite long!]

From: Thiemo Kellner <thiemo(at)thiam(dot)ch>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgNovice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Updatable view does not work [oops, quite long!]
Date: 2003-06-05 08:03:23
Message-ID: 3EDEF94B.5060306@thiam.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> Not very surprising, since "WHERE foo = bar" cannot succeed if either
> foo or bar is null.

This confirms my suspicion.

> You should not be comparing every field of the rows anyway. You should
> make sure that pwd has a primary key (which by definition must be
> non-null) and then check only the primary key field or fields in the
> rule WHERE clauses.

Well this was a futile attempt to hide the primary key pwd_id on the
base table from the end user.

Thanks,

Thiemo

--
root ist die Wurzel allen Übels

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Manfred Koizar 2003-06-05 09:18:13 Re: Updatable view does not work [oops, quite long!]
Previous Message Tom Lane 2003-06-05 06:04:33 Re: 7.2 -> 7.3 timespan, interval etc.