Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] psql 'none' as a HISTFILE special case

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Martin Atukunda" <matlads(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org, "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "Bruce Momjian" <bruce(at)momjian(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] psql 'none' as a HISTFILE special case
Date: 2006-08-25 17:46:11
Message-ID: 3147.1156527971@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
"Martin Atukunda" <matlads(at)gmail(dot)com> writes:
> On 8/25/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> There's probably no way to get Apple's libedit to not try the fchmod,
>> so what do we want to do here?  Maybe special-case the string
>> "/dev/null"?

> If this is OK, I can up with a patch that special cases /dev/null as a
> HISTFILE if libedit is found.

I was thinking of basically a one-liner addition to write_history
to skip the whole thing if strcmp(fname, DEVNULL) == 0.  Should be
reasonably inoffensive on anyone's machine.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2006-08-25 17:48:06
Subject: Re: Tricky bugs in concurrent index build
Previous:From: Alvaro HerreraDate: 2006-08-25 17:37:40
Subject: Re: Tricky bugs in concurrent index build

pgsql-patches by date

Next:From: Martin AtukundaDate: 2006-08-25 18:02:43
Subject: Re: [HACKERS] psql 'none' as a HISTFILE special case
Previous:From: Zoltan BoszormenyiDate: 2006-08-25 17:37:34
Subject: Re: Performance testing of COPY (SELECT) TO

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group