had some typos in the statements:
> CREATE TABLE public.test1 (> id1 int4 NOT NULL,> CONSTRAINT test1_pkey PRIMARY KEY (id1)> ) WITHOUT OIDS;
CREATE TABLE public.test2 () INHERITS(test1) WITHOUT OIDS;