• Tom Lane's avatar
    Fix for this problem: · e4044ba2
    Tom Lane authored
    regression=# select 1 from tenk1 ta cross join tenk1 tb for update;
    ERROR:  no relation entry for relid 3
    
    7.3 said "SELECT FOR UPDATE cannot be applied to a join", which was better
    but still wrong, considering that 7.2 took the query just fine.  Fix by
    making transformForUpdate() ignore JOIN and other special RTE types,
    rather than trying to mark them FOR UPDATE.  The actual error message now
    only appears if you explicitly name the join in FOR UPDATE.
    e4044ba2
initsplan.c 29.8 KB