Re: Updatable view does not work [oops, quite long!] - Mailing list pgsql-novice

From Thiemo Kellner
Subject Re: Updatable view does not work [oops, quite long!]
Date
Msg-id 3EDEF94B.5060306@thiam.ch
Whole thread Raw
In response to Re: Updatable view does not work [oops, quite long!]  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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


pgsql-novice by date:

Previous
From: Manfred Koizar
Date:
Subject: Re: Updatable view does not work [oops, quite long!]
Next
From: "Theuns"
Date:
Subject: IpcMemoryCreate: shmget failed (Permission denied)