Re: Remove readline notice from psql --version? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Remove readline notice from psql --version?
Date
Msg-id 1337570088-sup-1035@alvh.no-ip.org
Whole thread Raw
In response to Re: Remove readline notice from psql --version?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Remove readline notice from psql --version?
List pgsql-hackers
Excerpts from Tom Lane's message of dom may 20 23:04:59 -0400 2012:
>
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Excerpts from David Fetter's message of dom may 20 15:30:52 -0400 2012:
> >> I think this should be replaced with a notice about the actual library
> >> used.
>
> > That was my thought as well, but is it possible to implement it?
>
> And, more to the point, would it be more reliable than checking the
> results of system-specific tools such as ldd?

If well implemented, my guess is that it would be.  For example recall
that in Debian they are shipping psql linked to libedit due to licensing
concerns, but then suggest a hack to use LD_PRELOAD to load libreadline
instead.  So ldd might tell you that it's linked to libedit and fail to
notice that at runtime something different is being used.

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Daniel Farina
Date:
Subject: Re: Schema version management
Next
From: Tom Lane
Date:
Subject: Re: Remove readline notice from psql --version?