Re: Client-only Meson Build From Sources
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Jaroslaw Ciba <jaroslaw.ciba@carallon.com>
Cc: Benjamin Leff <benjamin.w.leff@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Peter Eisentraut <peter@eisentraut.org>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2026-01-15T18:58:18Z
Lists: pgsql-hackers
Hi, On 2026-01-15 18:29:43 +0000, Jaroslaw Ciba wrote: > We'd be interested in a stripped down libpq as well; a couple of our > embedded Linux platforms built in Buildroot include PostgreSQL, and it > accounts for roughly 15% and 20% of our firmware bundles respectively - one > of the taller nails in the BSPs. Both of these platforms are only ever > clients! What specifically do you mean with a stripped down libpq? Just without optional dependencies, which certainly do increase the installed size, or something more? > With autoconf it is trivial to get a client-side version only - just 4 make > commands do the trick. It'd be a few lines to add a 'libpq' and 'install-libpq' targets, I assume that'd do the trick for you? I assume you also need the headers being installed? Greetings, Andres Freund