pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Zach van Rijn <me@zv.io>
Cc: Pratik Parikh <pratik.p.parikh@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Static PostgreSQL Binaries (Linux + Windows)
Date: Sun, 13 Jan 2019 09:35:10 -0500
Message-ID: <3457.1547390110@sss.pgh.pa.us> (raw)
In-Reply-To: <1547388806.4002.20.camel@zv.io>
References: <1547351839.4002.17.camel@zv.io>
	<CA+BhGGu2_VGJyUt6qRoG5FJrDs1toc0CDcMwLYA-CA6qMO9D2w@mail.gmail.com>
	<1547388806.4002.20.camel@zv.io>

Zach van Rijn <me@zv.io> writes:
> Under the hood, the only major "technique" is wrapping the 'gcc'
> command with flags such as '-static' to ensure that everything
> is built correctly, and using reliable toolchains [1].
> There is one minor issue in that the postgres build scripts no
> longer appear to support static building [2,3] so it'll attempt
> to build files such as 'POSIX.so' etc. and these cause errors.

Yup.

> The workaround is simply to ignore these errors during build
> until I or someone else can get around to supplying patches (in
> the next week or so; I have other commitments).

TBH, there's going to be zero community interest in such patches.
There is no reason to avoid shared libraries, and they're an
essential part of the modern Postgres build architecture ---
particularly our extensibility story.

Personally, I find your claim that purely-static linking is somehow
a security advantage to be quite bizarre.  All modern Linux distros
actually forbid static linking, I believe, because it'd put them in
an impossible rebuild situation when some low-level component
requires an update --- possibly for security reasons.  Are you going
to promise immediate updates anytime glibc gets patched, across all
the platforms you're proposing to support this on?

			regards, tom lane




view thread (7+ messages)  latest in thread

Message-ID: <3457.1547390110@sss.pgh.pa.us>
Permalink:  ../3457.1547390110@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3457.1547390110@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, me@zv.io, pratik.p.parikh@gmail.com
  Subject: Re: Static PostgreSQL Binaries (Linux + Windows)
  In-Reply-To: <3457.1547390110@sss.pgh.pa.us>
  References: <1547351839.4002.17.camel@zv.io> <CA+BhGGu2_VGJyUt6qRoG5FJrDs1toc0CDcMwLYA-CA6qMO9D2w@mail.gmail.com> <1547388806.4002.20.camel@zv.io> <3457.1547390110@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox