You can use domains for this purpose:
create domain mydomain as integer check(value between 1 and 10)
create table mytable(id serial primary key, md mydomain not null)
-- this two will succeed
insert into mytable(md) values(1)
insert into mytable(md) values(2)
-- that one will fail
insert into mytable(md) values(12)
ERROR: value for domain mydomain violates check constraint "mydomain_check"
********** Error **********
ERROR: value for domain mydomain violates check constraint "mydomain_check"
More information can be found here: http://www.postgresql.org/docs/9.1/static/sql-createdomain.html