Dan's right. The other messages labelled "NOTICE" are just that, notices, not ERRORs. They're just informing you of additional stuff Postgres is creating for you. For instance, a primary key always has an index associated with it, even if you don't specify one, so Postgres tells you when it makes one for you.