try rewriting it to something like: update users set price = p.price from prices p where p.type = 'normal_price' and p.currency = users.currency; -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general