pgsql: Fix inconsistent RestrictInfo serial numbers

2024-11-07 Thread Richard Guo
Fix inconsistent RestrictInfo serial numbers When we generate multiple clones of the same qual condition to cope with outer join identity 3, we need to ensure that all the clones get the same serial number. To achieve this, we reset the root->last_rinfo_serial counter each time we produce Restric

pgsql: Fix inconsistent RestrictInfo serial numbers

2024-11-07 Thread Richard Guo
Fix inconsistent RestrictInfo serial numbers When we generate multiple clones of the same qual condition to cope with outer join identity 3, we need to ensure that all the clones get the same serial number. To achieve this, we reset the root->last_rinfo_serial counter each time we produce Restric