Re: Building postgresql from sources, statically linked, linux

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rob Gansevles <rgansevles(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Building postgresql from sources, statically linked, linux
Date: 2021-12-11 22:00:44
Message-ID: 10384.1639260044@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rob Gansevles <rgansevles(at)gmail(dot)com> writes:
> I would like to have a statically linked linux x64 version of postgresql
> 14.1 for creating a distributable sample database.

If you are trying to make the server into a monolithic object, that's
not something we support or have any particular interest in supporting.
Extensions such as PLs are always built as shared libraries. So are
the encoding conversion modules, which your build is failing on before
it gets to any others. It would take a good deal of fooling around
to change that, both in the build process and in the way that the
core server invokes that functionality.

Statically linking client-side programs such as psql is more within
the realm of feasibility, but you'd have to adjust just those builds
rather than trying to apply --static across the board.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2021-12-11 22:43:08 Re: pg_upgrade failing for 200+ million Large Objects
Previous Message Peter Geoghegan 2021-12-11 21:16:39 Re: Unifying VACUUM VERBOSE and log_autovacuum_min_duration output