PostgreSQL - Tipps und Tricks

Aus Geoinformation HSR
Wechseln zu: Navigation, Suche

Siehe auch:

Quickreference

Im Aufbau...

  • Start pgsl-Client:
 $ psql.exe -h localhost -p 5432 template1 "postgres"


Konfiguration

Die pg_hba.conf kann so eingestellt werden, dass bei der Ausführung von PostgreSQL-Kommandozeilen-Tools kein Passwort übertragen werden muss.

Bsp mit 127.0.0.1: Anstelle

 # IPv4 local connections:
 host    all         all         127.0.0.1/32          md5

neu:

 # IPv4 local connections:
 host    all         all         127.0.0.1/32          trust