| From: | Stuart Bishop <stuart(at)stuartbishop(dot)net> |
|---|---|
| To: | Rafael Martinez <r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no> |
| Cc: | PG-General Mailing List <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: PostgreSQL binaries under /usr/lib, why? |
| Date: | 2013-02-22 11:40:26 |
| Message-ID: | CADmi=6MaAku9HHv+Roaef02hpq30a4xZACw2UctYY7Ug5oJk5w@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Fri, Feb 22, 2013 at 4:41 PM, Rafael Martinez
<r(dot)m(dot)guerrero(at)usit(dot)uio(dot)no> wrote:
> Why are many postgres binaries in ubuntu under /usr/lib/postgresql?
They are under /usr/lib/postgresql/${VERSION}/bin. This allows
multiple PostgreSQL versions to coexist on the same Debian or Ubuntu
server.
> According to FHS-2.3, /usr/lib includes object files, libraries, and
> internal binaries that are not intended to be executed directly by
> users or shell scripts.
Right. This is why wrappers are installed in /usr/bin that invoke the
correct version of the executable when it is known (and a default
version when it isn't, such as when you are connecting to a remote
server). You shouldn't need to invoke anything from /usr/lib directly,
unless you are doing something particularly low level.
--
Stuart Bishop <stuart(at)stuartbishop(dot)net>
http://www.stuartbishop.net/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Rafael Martinez | 2013-02-22 12:04:05 | Re: PostgreSQL binaries under /usr/lib, why? |
| Previous Message | Rafael Martinez | 2013-02-22 09:41:10 | PostgreSQL binaries under /usr/lib, why? |