Use of smallserial gives error with PostgreSQL
Smallserial has been introduced in core with Postgres 9.2. In earlier version you could emulate it as it is only a short form. Documentation of 9.2 gives a hint for it