Attached please find patch reporting error in case of empty attribute list for SELECT INTO
This is quite short-sighted. The better way to do this is to complain if the number of expressions is different from the number of target variables (and the target variable is not a record-ish type). There's been at least two patches for this earlier (one my me, and one by, I think Pavel Stehule). I urge you to dig around in the archives to avoid wasting your time.
This issue can be detected by plpgsql_check and commitfest pipe is patch that raise warning or error in this case.