The query:
CREATE TABLE unapprovedteaminfo (
UnapprovedTeamInfoID BIGSERIAL NOT NULL,
EmailVerified boolean NOT NULL DEFAULT FALSE,
VerificationCode char (20) NOT NULL,
PRIMARY KEY (UnapprovedTeamInfoID)
);
The error:
ERROR: syntax error at or near "(" Position: 160 [ERROR:0, SQLSTATE:42601]
Might I add that pointing out the location of the error by “position” (instead of column and row) is unbelievably annoying?
Nothing is wrong with the DDL query. I just executed it without problem in my 9.1.5 installation.
The reason must be something that is not in your question.
As an aside: I assume you are aware, that unquoted identifiers are cast to lower case.