From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | David Fetter <david(at)fetter(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Remove readline notice from psql --version? |
Date: | 2012-05-21 04:02:25 |
Message-ID: | 20077.1337572945@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> Excerpts from Tom Lane's message of dom may 20 23:04:59 -0400 2012:
>> 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.
[ raised eyebrow ... ] Yeah, but exactly what would it take to produce
an output that told the truth in such a situation? I'll bet a large
amount of money that you would need a separate implementation for every
platform. And this problem just is not worth that.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Joel Jacobson | 2012-05-21 04:03:28 | Re: Schema version management |
Previous Message | Alvaro Herrera | 2012-05-21 03:18:00 | Re: Remove readline notice from psql --version? |