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 1olAd9-0007nX-1S for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2022 15:05:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1olAd7-0001AF-Ue for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2022 15:05:13 +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 1olAd7-0001A6-Ka for pgsql-general@lists.postgresql.org; Wed, 19 Oct 2022 15:05:13 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1olAd5-00075l-B3 for pgsql-general@lists.postgresql.org; Wed, 19 Oct 2022 15:05:12 +0000 Received: by mail-wm1-x329.google.com with SMTP id y10so13136478wma.0 for ; Wed, 19 Oct 2022 08:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=Kbm3BIZe6apSY37Z4yWes3AP7Ynnc8xojyaJT8tT5Hc=; b=1js0KgBiJYEWc/c4O4IPAdJjWScH002NHoR5hJjWrG2eqeQGBqsAevF99aCXg34ryd VMH7dDsNZjzPJHhDPj1E6BZ1u9Ar8896GNtcqMllkgvrzxz95r/bBTNHliq7CEoKyHSE KDTTTbqeAmb6pmnlhKDJVWF0/lpOdd4GJ/PC4xvUF7+Bvxejm7O6j38jCE45zCZk2lf7 7tpo+f8lt9GVd3iFErG+YlL1MLHLButfKJ9QZgBAi0WYJ7gugU+vjC6iyK4fxi0HEdOZ Gg3o0k6Ry0CJn44cfGPKvl7ZgOobJNovKs+ps99ABnmTfLTt0kcy9tBvMh7ww9jddcqk +e2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Kbm3BIZe6apSY37Z4yWes3AP7Ynnc8xojyaJT8tT5Hc=; b=CdIZ1x0cYW+FA6110Z0gE7Lmc24TGvWzuysjDT5SHLiJm46zmuEJUt8vD15Pd/b0dX AYwz/IHxCTPRQ8iPUURlaVxZwD4chwmQSUQbqbkO9Ub6kGoXRJp8+aGpOjCNmDGpUXVX /mk4YHfJ2IZN9cPfU0o8zyBGXeJjKFWD1oBCDOhWJ+ukor20Tl1487RxZvLLh4U7ZnQB rtrC2OY66lClMQu6o6BGkdMuB2CSWpCFm6L48/Q6CNVZIhH5t8y4IFc/BrlJCpfay5ZE RVSQuprADXdoRQ0NzfKK2rmuIV/kx73mRJUZLyxHqZB83WYanXRN8u/hdYQ1uaVSSc3+ HP9w== X-Gm-Message-State: ACrzQf1gmthGg+6pBBiGpqufn+flmj6Uog08nJNoxVWR23bbt0DS+Re5 Zh2X/paavktiKH2Ix1c0CPBHkw== X-Google-Smtp-Source: AMsMyM5w3ecHX90zCMvSYHwxMHUJfWnQxjviJ4E+OtIFp/P0sa+nQK/2GsUEj/ZUWBF2HTVSgmWxRw== X-Received: by 2002:a05:600c:1906:b0:3c6:db8a:2178 with SMTP id j6-20020a05600c190600b003c6db8a2178mr24139963wmq.7.1666191909644; Wed, 19 Oct 2022 08:05:09 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:6bcf:6bc6:867b:e3cb:a53e]) by smtp.gmail.com with ESMTPSA id o16-20020a056000011000b0022e38c93195sm13666003wrx.34.2022.10.19.08.05.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Oct 2022 08:05:08 -0700 (PDT) Message-ID: <68063d68a94af2be2dd42b29f8fff956360270e9.camel@cybertec.at> Subject: Re: How to store "blobs" efficiently for small and large sizes, with random access From: Laurenz Albe To: Dominique Devienne , Andreas Joseph Krogh Cc: pgsql-general@lists.postgresql.org Date: Wed, 19 Oct 2022 17:05:07 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2022-10-19 at 12:48 +0200, Dominique Devienne wrote: > On Wed, Oct 19, 2022 at 12:17 PM Andreas Joseph Krogh wrote: > > First advice, don't do it. We started off storing blobs in DB for “TX safety” > > Not really an option, I'm afraid. You should reconsider. Ruling out that option now might get you into trouble later. Large Objects mean trouble. Yours, Laurenz Albe