Re: Psql malloc error on Git master - Mailing list pgsql-bugs

From Bernd Helmle
Subject Re: Psql malloc error on Git master
Date
Msg-id 24DCA0F12595965A123C2DEF@amenophis
Whole thread Raw
In response to Re: Psql malloc error on Git master  (Thom Brown <thom@linux.com>)
Responses Re: Psql malloc error on Git master  (Thom Brown <thom@linux.com>)
List pgsql-bugs
--On 20. Januar 2011 21:56:44 +0000 Thom Brown <thom@linux.com> wrote:

>> Known bug in OSX's libedit. =C2=A0Use readline instead.
>>
>> http://archives.postgresql.org/pgsql-bugs/2010-04/msg00127.php
>>
>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0regards, tom lane
>
> How do I force readline?  I'm not using --with-libedit-preferred or
> --without-readline

What I've done is to switch to MacPorts[1] and use their packaging. I'm=20
building PostgreSQL then with:

--with-libraries=3D/opt/local/lib --with-includes=3D/opt/local/include

which for example links psql/libreadline with:

% otool -L $PGSQL_HOME/bin/psql
/Users/bernd/pgsql-dev/install/HEAD/bin/psql:
    /Users/bernd/pgsql-dev/install/HEAD/lib/libpq.5.dylib (compatibility=20
version 5.0.0, current version 5.4.0)
    /opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current=20
version 10.1.0)
    /opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current=20
version 1.0.0)
    /opt/local/lib/libreadline.6.1.dylib (compatibility version 6.0.0, current=
=20
version 6.1.0)

Works quite well for me. There's also a libedit in MacPorts, but i've never=
=20
used it.

        Bernd

[1] <http://www.macports.org/>

pgsql-bugs by date:

Previous
From: "Kunwar Anjani Tyagi"
Date:
Subject: Regular issues faced on postgres 8.1
Next
From: Robert Haas
Date:
Subject: Re: Regular issues faced on postgres 8.1