Re: psql error on quitting...

Lists: pgsql-general
From: Jerry LeVan <jerry(dot)levan(at)eku(dot)edu>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: psql error on quitting...
Date: 2005-11-09 00:48:40
Message-ID: 107EB16F-1A29-485C-B38E-21AA9F37E3D2@eku.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hi,

I just upgraded from 8.0.4 to 8.1.0 this afternoon and the only thing
"bad" I have noticed is that whenever I quit psql I get a message:

could not save history to file "/Users/jerry/.psql_history": Invalid
argument

This is on MacOS X 10.4.3

Thanks for any info...

Jerry


From: Jerry LeVan <jerry(dot)levan(at)eku(dot)edu>
To: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql error on quitting...
Date: 2005-11-09 02:17:59
Message-ID: EA048DD2-BEA1-43B8-8AFB-8C242C230450@eku.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Some more info, the history is actually written!
( ' ' seems to be translated to \40 )
Still get the error message...

Jerry

> Subject: psql error on quitting...
>
> Hi,
>
> I just upgraded from 8.0.4 to 8.1.0 this afternoon and the only thing
> "bad" I have noticed is that whenever I quit psql I get a message:
>
> could not save history to file "/Users/jerry/.psql_history":
> Invalid argument
>
> This is on MacOS X 10.4.3
>
> Thanks for any info...
>
> Jerry


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jerry LeVan <jerry(dot)levan(at)eku(dot)edu>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql error on quitting...
Date: 2005-11-09 03:22:53
Message-ID: 11029.1131506573@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Jerry LeVan <jerry(dot)levan(at)eku(dot)edu> writes:
> I just upgraded from 8.0.4 to 8.1.0 this afternoon and the only thing
> "bad" I have noticed is that whenever I quit psql I get a message:
> could not save history to file "/Users/jerry/.psql_history": Invalid
> argument
> This is on MacOS X 10.4.3

The Postgres code in that area hasn't changed at all. Maybe in this
build you linked against Apple's builtin libedit instead of libreadline?
libedit seems to have a bizarre definition of the result value from
write_history() :-(

regards, tom lane


From: Andreas Seltenreich <andreas+pg(at)gate450(dot)dyndns(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jerry LeVan <jerry(dot)levan(at)eku(dot)edu>, Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql error on quitting...
Date: 2005-11-09 12:27:45
Message-ID: 87d5laqa4e.fsf@gate450.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Tom Lane writes:

> Jerry LeVan <jerry(dot)levan(at)eku(dot)edu> writes:
>> I just upgraded from 8.0.4 to 8.1.0 this afternoon and the only thing
>> "bad" I have noticed is that whenever I quit psql I get a message:
>> could not save history to file "/Users/jerry/.psql_history": Invalid
>> argument
>> This is on MacOS X 10.4.3
>
> The Postgres code in that area hasn't changed at all.

input.c has:

--8<---------------cut here---------------start------------->8---
revision 1.45
date: 2005/06/10 15:40:41; author: momjian; state: Exp; lines: +2 -2
Use saveHistory so we get a nice error message on failure.
--8<---------------cut here---------------end--------------->8---

So, the error probably also occured in 8.0.4, but just wasn't reported
at all.

regards,
Andreas


From: Jerry LeVan <jerry(dot)levan(at)eku(dot)edu>
To: Andreas Seltenreich <andreas+pg(at)gate450(dot)dyndns(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql error on quitting...
Date: 2005-11-09 12:45:09
Message-ID: FB688656-A5D4-4D93-A903-622152EA9333@eku.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Tom was right, on the Mac libreadline is linked to libedit.

My "solution" was to comment out the line reporting the
error in the program "input.c"

Jerry

On Nov 9, 2005, at 7:27 AM, Andreas Seltenreich wrote:

> Tom Lane writes:
>
>> Jerry LeVan <jerry(dot)levan(at)eku(dot)edu> writes:
>>> I just upgraded from 8.0.4 to 8.1.0 this afternoon and the only
>>> thing
>>> "bad" I have noticed is that whenever I quit psql I get a message:
>>> could not save history to file "/Users/jerry/.psql_history": Invalid
>>> argument
>>> This is on MacOS X 10.4.3
>>
>> The Postgres code in that area hasn't changed at all.
>
> input.c has:
>
> --8<---------------cut here---------------start------------->8---
> revision 1.45
> date: 2005/06/10 15:40:41; author: momjian; state: Exp; lines:
> +2 -2
> Use saveHistory so we get a nice error message on failure.
> --8<---------------cut here---------------end--------------->8---
>
> So, the error probably also occured in 8.0.4, but just wasn't reported
> at all.
>
> regards,
> Andreas