Eduardo, > I'd like to know if "shp2pgsql" tool can take a given shapefile as input and then export its DBF field definitions according to a new structure given by parameters. I think you should simply create a view with the fields (and field names) you are looking for and then use shp2pgsql to export this view. Regards, Steffen