From: Peter Kovacs <maxottovonstirlitz@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Readline support in psql -- worked earlier for me
Date: Thu, 19 Jun 2008 17:36:34 +0200
Message-ID: <b6e8f2e80806190836r1b7bef64ke749dda1e29c1a27@mail.gmail.com> (raw)
In-Reply-To: <13650.1213889074@sss.pgh.pa.us>
References: <b6e8f2e80806190615x441426cbn95d8856398cd4e87@mail.gmail.com>
<13650.1213889074@sss.pgh.pa.us>
It doesn't appear to be interested in my ~/.inputrc file:
--------------
[pkovacs@pokkermann bin]$ grep '\/home\/pkovacs\/\.' f
stat64("/home/pkovacs/.pgpass", {st_mode=S_IFREG|0600, st_size=66, ...}) = 0
open("/home/pkovacs/.pgpass", O_RDONLY|O_LARGEFILE) = 4
access("/home/pkovacs/.psqlrc-8.3.3", R_OK) = -1 ENOENT (No such file
or directory)
access("/home/pkovacs/.psqlrc", R_OK) = -1 ENOENT (No such file or directory)
open("/home/pkovacs/.psql_history", O_RDONLY) = 5
stat64("/home/pkovacs/.terminfo", 0xbf8f3a94) = -1 ENOENT (No such
file or directory)
open("/home/pkovacs/.psql_history", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 4
--------------
But looks into /etc/inputrc:
--------------
[pkovacs@pokkermann bin]$ grep 'inputrc' f
stat64("/etc/inputrc", {st_mode=S_IFREG|0644, st_size=758, ...}) = 0
open("/etc/inputrc", O_RDONLY) = 5
--------------
Should I, perhaps, set something in ~/.psqlrc ? Or is there something
to set in /etc/inputrc ?
Thanks
Peter
On Thu, Jun 19, 2008 at 5:24 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "Peter Kovacs" <maxottovonstirlitz@gmail.com> writes:
>> It appears as though psql ignored the settings in my ~/.inputrc file:
>
> Seems to work for me in 8.3.3. Maybe a permissions problem on your
> .inputrc file? If you can't figure it out, one way to attack the
> problem is to strace psql startup, then look through the output to
> find where it tries to open .inputrc, and see what happens exactly.
>
> regards, tom lane
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: maxottovonstirlitz@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Readline support in psql -- worked earlier for me
In-Reply-To: <b6e8f2e80806190836r1b7bef64ke749dda1e29c1a27@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox