Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 27E922E0040 for ; Thu, 19 Jun 2008 12:36:39 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 11341-01 for ; Thu, 19 Jun 2008 12:36:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.235]) by developer.postgresql.org (Postfix) with ESMTP id DF46F2E002D for ; Thu, 19 Jun 2008 12:36:35 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so7425300rvf.43 for ; Thu, 19 Jun 2008 08:36:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=BxXjV5OvDaWHIMlXLTp++h+QpvyZjMZBk3qM4bI7B14=; b=D6v+V7jE7xl0pP+pH5st8OteTrjKxUGQGROFuar61wPKCKFQP61AH3h9GoVCAeVrE7 H7JZDobi263TJ9Kn1iNSik8gZtxr+mt0wPZWla1PTEqd7dgc3sJuMt2rNJ6uNv3L9sga XCEVkDLfggRw6Lml4Q39gMfQRBhcGYcGYBVwI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=pbmgbeav6XBN2vL2JkaH4KZ7iutyQy2NDFMjSgnNVyq2NQHGy7OM6d/Xhc6bb+Z920 uNWkJhBugdKMXoJyUpwltLIzRnCsJnbILEsXSBqxfJ8ZySLdarlg3AK1bCKKfFyodBzQ dK3CPQBBSEBg8Q5+RUEWndBxP0cBkrc7qvTtY= Received: by 10.141.197.14 with SMTP id z14mr6581603rvp.283.1213889794747; Thu, 19 Jun 2008 08:36:34 -0700 (PDT) Received: by 10.141.62.10 with HTTP; Thu, 19 Jun 2008 08:36:34 -0700 (PDT) Message-ID: Date: Thu, 19 Jun 2008 17:36:34 +0200 From: "Peter Kovacs" To: "Tom Lane" Subject: Re: Readline support in psql -- worked earlier for me Cc: pgsql-admin@postgresql.org In-Reply-To: <13650.1213889074@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <13650.1213889074@sss.pgh.pa.us> X-Google-Sender-Auth: 810a1b5c0c2eb5e1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200806/155 X-Sequence-Number: 29493 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 wrote: > "Peter Kovacs" 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 >