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 1tVv3s-00Cdbw-MI for pgsql-pkg-debian@arkaria.postgresql.org; Thu, 09 Jan 2025 16:07:09 +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 1tVv3s-003j2E-5H for pgsql-pkg-debian@arkaria.postgresql.org; Thu, 09 Jan 2025 16:07:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tVv3r-003j22-Qr for pgsql-pkg-debian@lists.postgresql.org; Thu, 09 Jan 2025 16:07:07 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tVv3p-000jMz-0R for pgsql-pkg-debian@lists.postgresql.org; Thu, 09 Jan 2025 16:07:06 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4362bae4d7dso8811405e9.1 for ; Thu, 09 Jan 2025 08:07:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ongres.com; s=gsuite; t=1736438823; x=1737043623; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=zR9IVqfGK28areNuJ9EyY2L6onMm0OAeog42x3QfSHw=; b=cquXJVAPkMc1Q6HN4c8jiDuskCVFzVhlgWy8lSjjOrGGJY6qO+0m5BqHObte9XCmbx MdI0B+2SzTkQZE7AgcVACqnX15Mg+AZmJwQLc1vi9qL5BvTVM/ehkED0KoVFzJ7q1VcR 6X9VJs129Mv5n/6VFxL0UvhUWVJiaN7MQfwwE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736438823; x=1737043623; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zR9IVqfGK28areNuJ9EyY2L6onMm0OAeog42x3QfSHw=; b=IQ6rfhAHbg1sYhDfpHNSGlRbUq+eODyOgkuNna/MVl6th+VxBVmyF1CxV9fdUJOGI/ 1hN0YyrDKFH15TQm3LV3RQngAC1kKOdHFnnEVs8Z/R7T5cYQLouIqgK7KV4lSqS1XfE0 f9GweioSJmRTVPZfwVAj89tqK/U85qZRBSNzMT6n1YCMfa5/ouBwu6txqRdmS3tYrQpa ilcyDUbNjOOprr1JuFztS2UMXbS0n4amM2Pl+nF1t+OHs6duPTLaeGhwpbk8SWeF/fcZ vDmUktWm4JpLlIrGxNrMb5n2+G+VgxYpSJG3lrPaGl/7LjjXOY7FFZ/+uPyfUffA96bm NFCA== X-Forwarded-Encrypted: i=1; AJvYcCWd1MbY2qLP1Yjpfws73G+DcqXT6YgG/aclp0u/oO7q59PsjAgGQLpraGDujbPrwXwIEs1wqDi3AVB6UugINCK+@lists.postgresql.org X-Gm-Message-State: AOJu0YxLcixBNx4bA7UgCTRW1YcR4vwwPtA96GZmVln5476KdNPcjOA9 Nl7UMjG61wRW9vEPg4PU9zGVDJMPooUdf/J4KQGN+CT8/bshAiMR5kNoVm7tkcU= X-Gm-Gg: ASbGncvAiW2uH91AD2n5UqPMiSb6g/zTJK1F66FvrSUOYMMV6/bOtvwIH+cjZYwkkVd 6DpH5MKFwKdWet3tp2tKqVpohrRaSDHTACj6GLE9WvwVtrKpbY79oTVOzc/dm964jQGDxJ2GN6h 1waVdMzKoxZEGNAgy/+NOFfAiaLeqhVuBXnwDAev9lyUGX8cGEZ1Vw7Nfy2KxXz/RJy/ijGD3HK C8+/VOAw3yINFnrp7+1c/yynsSahUdT3RkWjLuCnRUpDhP56VmNtvFJ41209Q54F3dhYWzR5sZz RI0sYlgaGnZ/oYlFrOTj9g== X-Google-Smtp-Source: AGHT+IG1B9xxSmGTlLzhlZP0yJQBWprVYNuRuon7vItxi0Hsj/4ySE2eD3hBM5Paj5dypBvW5m8yXQ== X-Received: by 2002:a05:600c:1552:b0:434:fb65:ebbb with SMTP id 5b1f17b1804b1-436e26be5a3mr71679165e9.17.1736438822795; Thu, 09 Jan 2025 08:07:02 -0800 (PST) Received: from [192.168.10.107] (204.red-81-34-31.dynamicip.rima-tde.net. [81.34.31.204]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436e2da6336sm59771995e9.8.2025.01.09.08.07.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jan 2025 08:07:02 -0800 (PST) Message-ID: Date: Thu, 9 Jan 2025 17:06:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: deb package sizes To: Christoph Berg , pgsql-pkg-debian@lists.postgresql.org References: <20250109005301.3b145092@jeremy-ThinkPad-T430s> Content-Language: en-US From: =?UTF-8?B?w4FsdmFybyBIZXJuw6FuZGV6?= Autocrypt: addr=aht@ongres.com; keydata= xsFNBF8HXQQBEACnRGsBas+BUNQkdN0O0qqfjL/G78gxAI2/6pTLsvXOmA0a6A+o16HynaBc PYgWeMrPj3fAlHQ4dyw2CF++LKRmr0xx04GaSi3bijCutRiyFFpdvl2VVRWlYmQhrfS4dVRl 2cHn+umoj9DOf0DpPYLyB/tHZIaBz1TU/69/7qD3G4NaAI2uGCji2pBNI1TEhOGXPE7HHGxJ k4Paf4Dby3VVeufcsTPa006kXj/aEObinpE41Yl/UgeQbnnPazHPXrFyfWpPqw6+kz7Tb+19 sOGJJAJplVmyqZ2Mewf1RtGOsBD8JABpdzLtv+FxKumnMcEYHLFgD6EQQQZi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naH+Qaq3mgy9 y0HlSPO+Vyy0W1zaxhLg9iG+c0jXNe+NrIZMzgZ6xMlxhUdIRFdsS9somXQbidlu53hSqf1/ oGv53Xcv0N1O/2rxgXm6eMypl9MzSEVo62VEphxH2rGKzT7/xKB8HgxIwb9P4Zc9N2JI0GOk vSliuLlmZplSJoqLl2uXsbz+uo5FLkMGrzHH3gNxjHYDX42rbRx1dkcXNfSMizKXY+N9ICy5 +6cx/z4Dj6gSucmVYKySRNdlXQ11/mklV/DoJ1bED6nKyqGBbCDuVGpjvaaBpVJutnPtN6M1 PHSlduJgSI1xQvOc5OiwME2gxiVnXRNYXjdh4DXMjagg1W9GvJnbgSxsKmmEPL2/XaFJRnKK NvktDmXISoacIVqyx4nu+X33e212iAltBrZbSGN1Ehx81FP7LmNuV0H/SYAEyogGS5RFlfAn zrHPa5TQtrzsrc3UuCmxy7/lPImx1n4bdpD/mTZUWmYHrtmRHpl/VFCi1jrOTpr6f1SAusdA ycqrESCJ In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/1/25 10:07, Christoph Berg wrote: > Re: Jeremy Schneider >> I'm wondering if there might be any support for providing a >> "postgresql-slim" package on PGDG which excludes llvm and python? I >> think this might almost cut the total install size in half, and I think >> there might be many users who would value having the option. > Hi, > > could you explain why 250 MB is too much? Disk space these days is > ultra cheap     Hi Christoph.     Container images allow (are meant to) contain only the necessary files needed to run the process that will be run when the image is run. As such, any additional file poses two main problems: * Disk space is cheap. Bandwidth not so much. Time to start a container may have a notable cost. Making container images slimmer helps in all these dimensions. When you run the same container image in many places, with high frequency, and end up pulling it multiple times, it all that has a cost. In particular for Postgres, time pulling and running an image may affect uptime. So it can become quite important. * Security analysis. Unneeded files (specially binaries, but not only) may lead to container images having (more) security vulnerabilities than they could. For many, container images must pass vulnerability analysis scans, and the more (unneeded) packages present, the bigger the chances are that they may contain vulnerabilities. It's anyway a basic security principle, to only contain the files needed to run the files needed, and no more. > and removing functionality (query JITing) does have cost > as well.     If it can be made optional, then users can decide whether they want container images with this functionality or not. >> Even though ICU is a larger package, I would argue for still >> including it in a "slim" build. Because of the drama around glibc >> collation I view ICU as especially important to make available. > Note that ICU does not fix the collation drama either, you will have > to reindex on ICU upgrades as well.     Agreed that it doesn't solve the whole drama, but reindexes are not needed if container images for upgrades are provided while keeping the ICU version constant (which is doable).     Álvaro