Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olAWw-0007Lp-S8 for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2022 14:58:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1olAWv-0002UH-If for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2022 14:58:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olAWv-0002TF-0L for pgsql-general@lists.postgresql.org; Wed, 19 Oct 2022 14:58:49 +0000 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olAWo-00071o-LX for pgsql-general@lists.postgresql.org; Wed, 19 Oct 2022 14:58:47 +0000 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-134072c15c1so20972307fac.2 for ; Wed, 19 Oct 2022 07:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=dbkR0nl7QOhDy+vUGzLcUA3f/wLKNZKdJ9hB3t332T0=; b=EPiIEHeZiPo3c4O8wlpwxdTbpkTyqMVE3dUVNEyAQToAvloeFjiCS0A1DL/04BoAge DYOtru4iHEOzQPXaVe3yp1qqlLMdrzi0sbb2lyKOA74GUbbKhtwdaRo8POiuqMlqGkBx +fwNojt2n1p4fp90X5v2AI6nwyZC9CLYosBg2R2J9MMcU92N3hi8VefDiNfPaUG13H5j 7ugzy0bAm70mRXdQQRzdEalB3xVlPcpaO8yPPYWo773OVS/buqOaUwpDEBoctvSiCQ/V VP3Yh13sl6LI7MVrNBW/sDBuEpx08rz+PB6DmjW8+hQcdo/J6jcfn4KPEhR0pWxJrFUy bcVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dbkR0nl7QOhDy+vUGzLcUA3f/wLKNZKdJ9hB3t332T0=; b=tBzkRdiYwWdbDNOElCPjqv5krpt+b5sJKUsYrxAOaUYo45SOn4RxK3fPHvihSmqL2O swyhHBIhZ37m0D8BR/Us5lBJxGf02fZbbgSrguJ98DxVTBeHa73YoNxoxbwUGjA9Swr/ taoWwnwxyVivbJXt54Bl5K4u4RYcTwzT2KOq+L+05PXDf+XxgDfK7tZLPcxlanMawhLf FADy+aSRoiSMDrNlcX/uTM86xCQOvGyJ8H0dIUUiLVO6FSyeMqjmZnD6ijTQEmHaVT/A 5IvoRawP+dnnn9S1FUPP7QDRsDaNpk6IJ2IBFhIEjslzXCHQyXZEAoeG7b8EQbSfI/fk NfNA== X-Gm-Message-State: ACrzQf0aDayWQ2EbiBcqEVp4gnsumviclx9XR3cOmZ4daBQpvjZXwH0y eDsRl38FC8VzUrXwcHGDVYEyAQWTQNI= X-Google-Smtp-Source: AMsMyM7Auk2xPo47PFbFG8cWhMb7nQu0Zn8Fs1fHbjI352dly4NIubBnWTkb4DZQW26unFKz0sdemA== X-Received: by 2002:a05:6870:d584:b0:137:2c18:6864 with SMTP id u4-20020a056870d58400b001372c186864mr4847319oao.245.1666191521983; Wed, 19 Oct 2022 07:58:41 -0700 (PDT) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id i20-20020a9d6254000000b00661d4e012d6sm7301057otk.20.2022.10.19.07.58.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Oct 2022 07:58:41 -0700 (PDT) Message-ID: <0ca2695b-b545-8593-8137-90d6ab6835b9@gmail.com> Date: Wed, 19 Oct 2022 09:58:40 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: How to store "blobs" efficiently for small and large sizes, with random access Content-Language: en-US To: pgsql-general@lists.postgresql.org References: From: Ron 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 10/19/22 04:47, Dominique Devienne wrote: [snip] > PS: Another drawback of lo is that because it's a single table, it > still subject to the 32 TB limit on a relation. > The 4TB limit per lo is way more than we need, but the 32 TB limit > may actually be more of an issue for > our larger clients, which have thousands of projects, each with > upwards of a few millions of those blobs. Partition the table on the first segment of the Primary Key.  From experience, anything else can lead to serious query degradation. -- Angular momentum makes the world go 'round.