pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Bruce Momjian <bruce@momjian.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Christophe Pettus <xof@thebuild.com>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Wolfgang Walther <walther@technowledgy.de>
Cc: PostgreSQL Bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded
Date: Tue, 19 Mar 2024 21:27:23 -0400
Message-ID: <Zfo7e3OV1p9aVvot@momjian.us> (raw )
In-Reply-To: <CA+hUKG+Y1D2Bv9v0GbYrhiQ+mhf=6Xj2_viiATnBVFShkfO4VQ@mail.gmail.com >
References: <CAD5tBcLWM+QT0+VKWUHiBX2Ey5eCc8jVL5APb1U5iaePV_eAvg@mail.gmail.com >
<A9F65857-A286-4EB8-96CE-EA5C1636A05C@thebuild.com >
<CA+hUKG+H80zJTmNnRbAQb+py2xpzNUtmoacbfnyAi2c5d1imGg@mail.gmail.com >
<E5D4E3AE-C926-48C5-84DC-57E3E9357675@thebuild.com >
<CA+hUKGJW_ht0VYsr7bzF8-FLZW_o3Ys6Xm5w10GU5WBHtfv+zg@mail.gmail.com >
<3561573.1710771812@sss.pgh.pa.us >
<CA+hUKG+Tq3GK7bPd03N0Eox3YY4-Hjd7qQjo_QZFjdbhTqQGQA@mail.gmail.com >
<CA+hUKGK9LUq=uygBRFt3vFO1RL+_scsT4+hMkvea_zTttHZ59Q@mail.gmail.com >
<ZfolyUQw9z1zxX58@momjian.us >
<CA+hUKG+Y1D2Bv9v0GbYrhiQ+mhf=6Xj2_viiATnBVFShkfO4VQ@mail.gmail.com >
On Wed, Mar 20, 2024 at 02:12:54PM +1300, Thomas Munro wrote:
> On Wed, Mar 20, 2024 at 12:54 PM Bruce Momjian <bruce@momjian.us> wrote:
> > So this would truncate the process title on all Linux that have an LD_
> > environment entry, even those without musl?
>
> Yep. How long is /proc/XXX/cmdline (check with wc -c /proc/...) in a
> postmaster near you? You'd always get that much, plus as much of
$ cat /proc/2000/cmdline |wc -c
30
> /proc/XXX/environ as we can find before you reach LD_XXX=, which on a
> typical system would, I guess, usually be never. If it's a problem
> you could try to arrange for LD_ XXX to come later in environ[]. What
> I observe is that they seem to get copied in backwards, wrt the
> environment exported by the parent, so if you set DUMMY=XXXXXXXX just
> before starting the process it'll make sacrificial space in the right
> place (but I'm not sure where that effect is coming from so don't
> quote me).
I am just cautious about changing behavior on our most common platform
for a libc library I have never heard of.
--
Bruce Momjian <bruce@momjian.us> https://momjian.us
EDB https://enterprisedb.com
Only you can decide what is important to you.
view thread (86+ messages) latest in thread
Message-ID: <Zfo7e3OV1p9aVvot@momjian.us>
Permalink: ../Zfo7e3OV1p9aVvot@momjian.us/
Also on: postgresql.org/message-id/Zfo7e3OV1p9aVvot@momjian.us
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: bruce@momjian.us, thomas.munro@gmail.com, tgl@sss.pgh.pa.us, xof@thebuild.com, andrew@dunslane.net, walther@technowledgy.de, pgsql-bugs@lists.postgresql.org
Subject: Re: Regression tests fail with musl libc because libpq.so can't be loaded
In-Reply-To: <Zfo7e3OV1p9aVvot@momjian.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