Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWi6N-0013vx-Hk for pgsql-pkg-debian@arkaria.postgresql.org; Sat, 11 Jan 2025 20:29:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tWi6K-00CBgv-B6 for pgsql-pkg-debian@arkaria.postgresql.org; Sat, 11 Jan 2025 20:28:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tWi6K-00CBgn-0z for pgsql-pkg-debian@lists.postgresql.org; Sat, 11 Jan 2025 20:28:55 +0000 Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tWi6G-0017jP-1u for pgsql-pkg-debian@lists.postgresql.org; Sat, 11 Jan 2025 20:28:55 +0000 Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-21619108a6bso52970775ad.3 for ; Sat, 11 Jan 2025 12:28:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ardentperf-com.20230601.gappssmtp.com; s=20230601; t=1736627330; x=1737232130; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=G2y1WWdvgMxfALrnjkRfzC/mnaCqowad9h2K1bUYMoY=; b=osQGyt5GOh2OUDnyumyTzqFAdcO6/oQNHG9OltqIVQBFeXElB+qYvnA6zKId6cjk+g 52QIW2ZMCu7EoxSIZZeL//gV+Am4pQ3IQqpizJXIFn5dYQYRrM/eXSvs4xUwwdXARaNC jMdCbsjqTkmZXEkMlYwooJBdEe7j0XqNZsyftJCTxYYfbX29G0qyKSKPRkH9Ng68NzTW yFOiPxq7Om92D4GkB9GHXwk0+o0wWBkZIIdt30P3vjMoGwfAfiQAQp9MPxrDcGXnwWoQ tILcoUhMMD1ZUQMjX8Citm+iC5YlS9NHufLtlA9cjUdTwRNF5Z3+c0RBHhR0lAa2zt1F EImQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736627330; x=1737232130; h=content-transfer-encoding:mime-version:message-id:subject:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=G2y1WWdvgMxfALrnjkRfzC/mnaCqowad9h2K1bUYMoY=; b=IAFYW1oBGapaC4tZZ0R1+51eq6gchjBb+vT3ysyt9OczoMgmf7ix18oU7Xdj1tY4rX R3V2BzQoLq+eJQ0n/bKcq0R2OnqqIZ+xhlWsPzNj/bsXJIk/dhPgy19I836V21HotIQM LR1BPzrFXfL8NIPPrmM7KD6c5KhRgqzj/tGgkNwMrbmC89ubIwZxiaV93haXesnsnr+G P/TC6WdI0PHKpKTe65kvlePjA7Jm4qGWTD8Dcu4xFG6aj5l+61ep/KHeskT98T6Hjg9J 1ksW0UJFGpRBCRvE7atEZPHveVeQqmEoQA3YOiRoYOBo2H3UuNMk8H+i/vja94PyMZni zTJA== X-Gm-Message-State: AOJu0Ywy/tsB7YCdQ0DnIxP5rc5I3RaJaOQ07Qnnj/3x3ARQkKx/vI26 lxBg/ytEquttkPhHbe6ExhV6r6fO1Y8Y2rsIsc6OKcHgMrOBjTLAFoj4nAESR6kg0UzpgBYIWmA 9Kg== X-Gm-Gg: ASbGncu2jF6Ys9H40TVEhcIp6Hnbr07370ayKr5+7/Oda97U4Pxqug/qNSA8nwpHUXU oKTUh0xRseiAwlz+GbWkClLCRNFcu40EWsujjOn71JJTNhwSh6iOMtycqVjvo5Itld2Um6HoCyX 4DS5A4DH5P1XxbPUkR4lBn34Q00rXB/uPkDrzGfp05YXNAgfoVJ3c3knyz2oa0IuuU6XeXwtqVX KOTUoZYiFfMIj6jZKboX3B483DtcXQssPt4K54pa52F3r2t9Y83eSUrzHSMWC3/OCgxZqLGEkrQ fJmfxOXXTyi0ldL+vtWlbD/cORor X-Google-Smtp-Source: AGHT+IGV37POxzma/uvp+oagv85NgjzK73aqzXajtIJxIKiebC5CurJ3MmDAIBP+5sKk1NnYql9jFg== X-Received: by 2002:a05:6a20:7491:b0:1e1:a693:d623 with SMTP id adf61e73a8af0-1e88d12d52bmr24485064637.25.1736627330291; Sat, 11 Jan 2025 12:28:50 -0800 (PST) Received: from jeremy-ThinkPad-T430s (97-113-74-110.tukw.qwest.net. [97.113.74.110]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72d405491b8sm3390503b3a.9.2025.01.11.12.28.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jan 2025 12:28:49 -0800 (PST) Date: Sat, 11 Jan 2025 12:28:47 -0800 From: Jeremy Schneider To: "pgsql-pkg-debian@lists.postgresql.org" Subject: postgresql-client-common pulling in libipc-run-perl Message-ID: <20250111122847.486d05e2@jeremy-ThinkPad-T430s> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Last week I started digging into docker image sizes, and I noticed that perl and llvm together make up 44% of the package. My initial email asked about a "slim" package which might change build flags. I had thought that the dependencies on llvm and perl were coming from the postgres server. After some further checking, I realized today that the postgres server is pulling in llvm, but in fact it's the postgres client that's pulling in perl. Debian packaging already splits out plperl into a separate package with a dependency on perl, and the postgres server package itself does not depend on perl. Per my previous email, dpkg Installed-Size (without plperl installed): libperl5.36 28862 KB perl-modules-5.36 17816 KB perl 669 KB libio-pty-perl 103 KB libipc-run-perl 267 KB Here is a dependency tree, showing how the perl packages are getting pulled into the docker image: perl-modules-5.36 =E2=94=9C=E2=94=80=E2=94=80 libperl5.36 =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=94=E2=94=80=E2=94=80 perl =E2=94=94=E2=94=80=E2=94=80 libio-pty-perl =E2=94=94=E2=94=80=E2=94=80 libipc-run-perl =E2=94=94=E2=94=80=E2=94=80 postgresql-client-common =E2=94=9C=E2=94=80=E2=94=80 postgresql-common =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 postgresql-17 =E2=94=94=E2=94=80=E2=94=80 postgresql-client-17 =E2=94=94=E2=94=80=E2=94=80 postgresql-17 So the real question is why the client-common package has a hard requirement on libipc-run-perl, and whether we can make this dependency optional (or remove it). That would trim about 45MB off the base container size, which is meaningful since these base images are very widely used. For LLVM, after giving it a little more thought, I think the best solution would actually be to discuss on hackers the idea of making JIT something more like an extension which can be installed separately without a recompile, so that it could be split into a separate debian package - similar to plperl, plpython and pltcl. -Jeremy