According to the manual: create table and create table as you can either:
- create table with primary key first, and use select into later
- create table as first, and use add primary key later
But not both create table as with primary key – what you wanted.