"Seth Banks" <seth(at)subimage(dot)com> writes:
> company_id int4 PRIMARY KEY DEFAULT nextval(company_id_seq),
Try
company_id int4 PRIMARY KEY DEFAULT nextval('company_id_seq'),
Actually, this would work just as well:
company_id SERIAL,
and it'd even make the sequence object for you.
regards, tom lane