SAGA-GIS Module Library Documentation (v2.3.0)

Module Connect to PostgreSQL

Connect to PostgreSQL data source.

Parameters

 NameTypeIdentifierDescriptionConstraints
OptionsHostTextPG_HOSTPasswordDefault: localhost
PortIntegerPG_PORT-Minimum: 0
Default: 5432
DatabaseTextPG_NAMEDatabase NameDefault: geo_test
UserTextPG_USERUser NameDefault: postgres
PasswordTextPG_PWDPasswordDefault: postgres

Command-line

Usage: saga_cmd db_pgsql 1 [-PG_HOST <str>] [-PG_PORT <num>] [-PG_NAME <str>] [-PG_USER <str>] [-PG_PWD <str>]
  -PG_HOST:<str>	Host
	Text
	Default: localhost
  -PG_PORT:<num>	Port
	Integer
	Minimum: 0
	Default: 5432
  -PG_NAME:<str>	Database
	Text
	Default: geo_test
  -PG_USER:<str>	User
	Text
	Default: postgres
  -PG_PWD:<str> 	Password
	Text
	Default: postgres