Re: missing FROM-clause entry - Mailing list pgsql-general

From Brandon Metcalf
Subject Re: missing FROM-clause entry
Date
Msg-id Pine.LNX.4.58L.0610231743150.1695@cash.us.nortel.com
Whole thread Raw
In response to Re: missing FROM-clause entry  ("Thomas H." <me@alternize.com>)
List pgsql-general
m == me@alternize.com writes:

 m> you didn't reference the table "replica"... this should work:
 m> UPDATE model_timemap
 m> SET map = updatemap( CASE WHEN replica = 32188 THEN 328787 WHEN replica =
 m> 32191 THEN 5739 ELSE -1 END, 1161642129, map)

 m> FROM replica

 m>  WHERE replica.replica_id = model_timemap.replica AND replica.proxy = 32189


Ah.  Thanks.

--
Brandon

pgsql-general by date:

Previous
From: "Thomas H."
Date:
Subject: Re: missing FROM-clause entry
Next
From: Tom Lane
Date:
Subject: Re: failing 8.1.4 autovacuum