According to the PostGIS manual, geometry columns should not by added directly, but using AddGeometryColumn():
AddGeometryColumn — Adds a geometry column to an existing table of attributes.
I am copying a schema from one PostgreSQL instance to another. I wonder if the SQL created by pg_dump
is good enough - will it create the geometry columns the same way AddGeometryColumn() does?