The following bug has been logged on the website:
Bug reference: 18721
Logged by: Félix Saparelli
Email address: felix@passcod.name
PostgreSQL version: 17.2
Operating system: Windows
Description:
The documentation here https://www.postgresql.org/docs/17/app-psql.html
seems to imply that history works on Windows.
For example, the section for HISTFILE says:
> The file name that will be used to store the history list. If unset, the
file name is taken from the PSQL_HISTORY environment variable. If that is
not set either, the default is ~/.psql_history, or
%APPDATA%\postgresql\psql_history on Windows.
However, all efforts to try to get this working go nowhere.
This is because the feature doesn't work on the "native" Windows build, only
the cygwin one, according to
https://stackoverflow.com/questions/68011643/where-is-the-psql-history-file-in-windowss-postgresql
It would be helpful if the official documentation made some mention of this
(or if the feature worked!).
Cheers,