PostGreSQL#

Alles halb so wild. Im Gegensatz zu MySQL (siehe dort) habe ich PostGreSQL auch unter HPUX kompilieren können.

Geht auch ohne Root-Rechte mit 
configure --PREFIX=/home/dau
make && make install

Die Verwaltung erfolgt mit pg_ctl, einfach das Pg-bin-Verzeichnis in den Suchpfad einbinden:

% > pg_ctl --help
pg_ctl is a utility to start, stop, restart, reload configuration files,
report the status of a PostgreSQL server, or signal a PostgreSQL process.

Usage:
  pg_ctl start   [-w] [-D DATADIR] [-s] [-l FILENAME] [-o "OPTIONS"]
  pg_ctl stop    [-W] [-D DATADIR] [-s] [-m SHUTDOWN-MODE]
  pg_ctl restart [-w] [-D DATADIR] [-s] [-m SHUTDOWN-MODE] [-o "OPTIONS"]
  pg_ctl reload  [-D DATADIR] [-s]
  pg_ctl status  [-D DATADIR]
  pg_ctl kill    SIGNALNAME PID

Common options:
  -D, --pgdata DATADIR   location of the database storage area
  -s, --silent           only print errors, no informational messages
  -w                     wait until operation completes
  -W                     do not wait until operation completes
  --help                 show this help, then exit
  --version              output version information, then exit
(The default is to wait for shutdown, but not for start or restart.)
[...]

Der Konsolen-Client lauscht auf den Namen psql:

% > psql --help
[... alle Parameter ...]

% > psql -d __DB__ -U __User__ -W -h __Horst__ -p __Port__

DB => \? ->listet Hilfe am psql-Prompt auf
DB => \l -> listet alle Postgres-Datenbanken auf dem Pg-Server
DB => \c Blumenkohl -> verbindet mit Datenbank aus der Gattung Sellerie
DB => \dt -> listet Tabellen der aktuell verbundenen DB
DB => \q -> beendet den Klienten

--MarkusMonderkamp