José Pedro Santos wrote: > When I try to use the command line tool shp2pgsql in the shell I > have this error: > > Error: pg_wrapper: invalid command name > > I already read some information in the Debian lists but I don't > understand the problem/relation with PostgreSQL. shp2pgsql converts ESRI Shape files into SQL suitable for insertion into a PostGIS/PostgreSQL database. You are not using PostgreSQL until you take the resulting file and run it against the database using some client application, like psql. pg_wrapper is an Ubuntu "helper" program that runs a PostgreSQL client program like psql after looking up which version to use for the requested database cluster. http://manpages.ubuntu.com/manpages/lucid/man1/shp2pgsql.1.html http://manpages.ubuntu.com/manpages/lucid/man1/pg_wrapper.1.html It appears that you don't have pg_wrapper installed, but are trying to use it (either directly or by running something which tries to use it). -Kevin -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general