Problem: Keine tab-vervollständigung bei psql

Hallo,

ich habe gedare postgreSQL 8.4 installiert und habe Windows XP, und im psql funktioniert das automatische Vervollständigen von Befehlen nicht.
Habe überall gesucht was es sein könnte aber keine Ahnung!
Bitte um rasche Hilfe!

Schau mal da drauf:


  • Before starting up, psql attempts to read and execute commands from the system-wide psqlrc file and the user’s ~/.psqlrc file. (On Windows, the user’s startup file is named %APPDATA%\postgresql\psqlrc.conf.) See PREFIX/share/psqlrc.sample for information on setting up the system-wide file. It could be used to set up the client or the server to taste (using the \set and SET commands).
  • Both the system-wide psqlrc file and the user’s ~/.psqlrc file can be made version-specific by appending a dash and the PostgreSQL release number, for example ~/.psqlrc-8.4.4. A matching version-specific file will be read in preference to a non-version-specific file.
  • The command-line history is stored in the file ~/.psql_history, or %APPDATA%\postgresql\psql_history on Windows.

Quelle: PostgreSQL: Documentation: Manuals: PostgreSQL 8.4: psql

Edit:

Es scheint, als wenn die Funktion bewußt nicht aktiv ist, siehe postgresql - How to make psql completion with Windows? - Server Fault

Readline is disabled by default on Windows. You can rebuild with it enabled - but it is broken for most non-english locales. For example, in most western european locales you can no longer type backslash - an essential character to use readline. This is a bug in readline, but last time I checked they had zero interest in the win32 platform and won’t fix it.

Leider konnte ich das Problem nicht lösen. Es existiert unter anderem kein psql_history file. Würde eine Neuinstallation was bringen?

Dazu muß psql mit libreadline compiliert sein - ich hab aber keine Ahnung, ob das überhaupt unter Windoze verfügbar ist.
Du kannst ja mal Google danach durchforsten…

Andreas

In den Packages von EnterpriseDB zumindest nicht. Und das sind eben die, auf die postgresql.org verlinkt…