Re: Commands history with psql in a Windows command line shell

From: Melvin Davidson <melvin6925(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Lmhelp1 <lmhelp1(at)orange(dot)fr>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Commands history with psql in a Windows command line shell
Date: 2016-08-02 15:56:54
Message-ID: CANu8FiyqkgZn4Cy1ygachbHt=Sewka-6rYPECd1vrauw6=MikA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 2, 2016 at 11:40 AM, David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:

> On Tue, Aug 2, 2016 at 11:31 AM, Melvin Davidson <melvin6925(at)gmail(dot)com>
> wrote:
>
>> Are you doing this in PostgreSQL 7.3 and Windows XP? Can you provide us
>> with a little more useful information like current PostgreSQL version and
>> O/S?
>> Otherwise we have absolutely no idea what the problem might be.
>>
>>
> "Windows (8.1)" refers to the O/S version.
>
> Knowing the PostgreSQL version probably won't make a difference though
> knowing how it was installed might (though not for me personally).
>
> David J.
>
>
Thank you, Based on
https://www.postgresql.org/docs/9.5/static/app-psql.html#APP-PSQL-ENVIRONMENT

The following may be pertinent.

If -n / --no-readline was specified, then command history is not used.

What happens if you issue the \s command in psql? Is history supported?

What is the value for HISTFILE?

--
*Melvin Davidson*
I reserve the right to fantasize. Whether or not you
wish to share my fantasy is entirely up to you.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lmhelp1 2016-08-02 16:19:33 Re: Commands history with psql in a Windows command line shell
Previous Message Lmhelp1 2016-08-02 15:40:38 Re: Commands history with psql in a Windows command line shell