OS Manuals

/usr/local/bin/pgsql2shp

Geographic Information Systems Extensions to PostgreSQL

From postgis 3.5.0-r1 (os), captured 2026-11-05 by running pgsql2shp --help (exit 1). permalink

/usr/local/bin/pgsql2shp: illegal option -- -
RELEASE: 3.5.0 (d2c3ca4)
USAGE: pgsql2shp [<options>] <database> [<schema>.]<table>
       pgsql2shp [<options>] <database> <query>

OPTIONS:
  -f <filename>  Use this option to specify the name of the file to create.
  -h <host>  Allows you to specify connection to a database on a
     machine other than the default.
  -p <port>  Allows you to specify a database port other than the default.
  -P <password>  Connect to the database with the specified password.
  -u <user>  Connect to the database as the specified user.
  -g <geometry_column> Specify the geometry column to be exported.
  -b Use a binary cursor.
  -r Raw mode. Do not assume table has been created by the loader. This would
     not unescape attribute names and will not skip the 'gid' attribute.
  -k Keep PostgreSQL identifiers case.
  -m <filename>  Specify a file containing a set of mappings of (long) column
     names to 10 character DBF column names. The content of the file is one or
     more lines of two names separated by white space and no trailing or
     leading space. For example:
         COLUMNNAME DBFFIELD1
         AVERYLONGCOLUMNNAME DBFFIELD2
  -q Quiet mode. No messages to stdout.
  -? Display this help screen.
Options (6)
OptionDescriptionSource
-f filenameUse this option to specify the name of the file to create.help
-h hostAllows you to specify connection to a database on a machine other than the default.help
-p portAllows you to specify a database port other than the default.help
-P passwordConnect to the database with the specified password.help
-u userConnect to the database as the specified user.help
-m filenameSpecify a file containing a set of mappings of (long) column names to 10 character DBF column names.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.