Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 930441337BD4 for ; Fri, 21 Jan 2011 10:56:05 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 97295-03 for ; Fri, 21 Jan 2011 14:56:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from dd2030.kasserver.com (dd2030.kasserver.com [85.13.128.37]) by mail.postgresql.org (Postfix) with ESMTP id 5DC051337BA1 for ; Fri, 21 Jan 2011 10:55:55 -0400 (AST) Received: from [172.26.14.62] (exit.credativ.com [87.139.82.80]) by dd2030.kasserver.com (Postfix) with ESMTPA id 81226E03FA; Fri, 21 Jan 2011 15:55:54 +0100 (CET) Date: Fri, 21 Jan 2011 15:55:53 +0100 From: Bernd Helmle To: Thom Brown , Tom Lane cc: pgsql-bugs Subject: Re: Psql malloc error on Git master Message-ID: <24DCA0F12595965A123C2DEF@amenophis> In-Reply-To: References: <21691.1295559886@sss.pgh.pa.us> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, MIME_QP_LONG_LINE=0.001 X-Spam-Level: X-Archive-Number: 201101/150 X-Sequence-Number: 29172 --On 20. Januar 2011 21:56:44 +0000 Thom Brown 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 = version 6.1.0) Works quite well for me. There's also a libedit in MacPorts, but i've never = used it. Bernd [1]