CREATE TABLE test ( ip inet, port integer not null default 0, country char(10) not null default '', PRIMARY KEY(ip) ) insert into test (ip, port) values('1.1.1.1', 80)