Re: pgsql: Fix optimization of foreign-key on update actions

2019-08-25 Thread Peter Geoghegan
On Mon, Mar 18, 2019 at 9:21 AM Peter Eisentraut wrote: > Fix optimization of foreign-key on update actions It looks like datum_image_eq() doesn't handle the cstring case (i.e. the "typLen == -2" case) correctly. I think that it should. -- Peter Geoghegan

pgsql: Fix optimization of foreign-key on update actions

2019-03-18 Thread Peter Eisentraut
Fix optimization of foreign-key on update actions In RI_FKey_pk_upd_check_required(), we check among other things whether the old and new key are equal, so that we don't need to run cascade actions when nothing has actually changed. This was using the equality operator. But the effect of this is