postgres=# create temporary table mytemp2 (like mytable including all);
ERROR: unexpected varattno 2 in expression to be mapped
Considerations:
It looks as if the INCLUDING ALL logic, however it may work, assumes that stored columns can only refer to columns defined before. On the other hand, CREATE TABLE does not enforce this.
So from my naive perspective, either INCLUDING ALL should be fixed not to make this assumption, or CREATE TABLE & Co. should forbid the definition of such columns.
I would be happy if this bug could be fixed in a later release (provided that it has not already been).
Note: Please reply directly to my email address if you want to contact me, I did not subscribe to the bugs list.