Adrian Klaver <aklaver@comcast.net> writes:
> Out of curiosity I went back to 8.0 and ran the function and got:
> production=> SELECT dodi();
> WARNING: column "?column?" has type "unknown"
> DETAIL: Proceeding with relation creation anyway.
Pre-8.2 plpgsql was willing to treat INTO as not special if the word
right after it was not any known plpgsql variable, but this was never
exactly a good thing to rely on. Per the recommendation in the docs,
you should be using CREATE TABLE AS rather than SELECT INTO if you
want to get at the non-plpgsql behavior of SELECT INTO.
regards, tom lane