HAWQ Client Applications
HAWQ comes installed with a number of client utility applications located in the
$GPHOME/bin directory of your HAWQ master host installation. The following are the most commonly used client utility applications:
||create a new database|
||define a new procedural language|
||define a new database role|
||remove a database|
||remove a procedural language|
||remove a role|
||PostgreSQL interactive terminal|
||reindex a database|
||garbage-collect and analyze a database|
When using these client applications, you must connect to a database through the HAWQ master instance. You will need to know the name of your target database, the host name and port number of the master, and what database user name to connect as. This information can be provided on the command-line using the options
-U respectively. If an argument is found that does not belong to any option, it will be interpreted as the database name first.
All of these options have default values which will be used if the option is not specified. The default host is the local host. The default port number is 5432. The default user name is your OS system user name, as is the default database name. Note that OS user names and HAWQ user names are not necessarily the same.
If the default values are not correct, you can set the environment variables
PGUSER to the appropriate values, or use a
~/.pgpass file to contain frequently-used passwords.