"Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> writes:
>> What of
>> SELECT a,c,d FROM test
>> I'll bet that doesn't work at all...
> Yeah, broken. Damn.
Yup. That loop we were just looking at needs to derive the correct
attnum when it matches a column name. If you remove deleted columns
from the eref list altogether, you get the wrong answer.
regards, tom lane