Fix oversight in optimization that avoids an unnecessary projection step

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 94db74f37071984c11ce5cc33a40285a5bfeec4c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-01-22T02:23:35Z
Releases: 7.4.2
Fix oversight in optimization that avoids an unnecessary projection step
when scanning a table that we need all the columns from.  In case of
SELECT INTO, we have to check that the hasoids flag matches the desired
output type, too.  Per report from Mike Mascari.

Files