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 1jZIdN-0006iU-Kd for pgsql-general@arkaria.postgresql.org; Thu, 14 May 2020 18:31:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZIdK-0007KH-U1 for pgsql-general@arkaria.postgresql.org; Thu, 14 May 2020 18:31:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZIdK-0007KA-MI for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 18:31:02 +0000 Received: from intern.proventis.net ([217.111.101.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZIdI-00022a-0H for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 18:31:02 +0000 Received: from mail.proventis.net (unknown [192.168.22.239]) by intern.proventis.net (Postfix) with ESMTP id C42F4207C5 for ; Thu, 14 May 2020 20:30:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.proventis.net (Postfix) with ESMTP id B941E7DAFA1 for ; Thu, 14 May 2020 20:30:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.proventis.net Received: from mail.proventis.net ([127.0.0.1]) by localhost (mail.proventis.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id z4I6e9kt3MXw for ; Thu, 14 May 2020 20:30:54 +0200 (CEST) Received: from [10.8.0.138] (proxy.proventis.net [192.168.22.253]) by mail.proventis.net (Postfix) with ESMTP id 121457DD854 for ; Thu, 14 May 2020 20:30:53 +0200 (CEST) Subject: Re: Practical usage of large objects. Cc: pgsql-general@lists.postgresql.org References: <10209.1589392548@sss.pgh.pa.us> <20200514035949.GD166343@paquier.xyz> <72a02fe6b1b78120136cf7f96cd35c0c2ed2f4d2.camel@cybertec.at> From: Thomas Markus Organization: proventis GmbH Message-ID: <6fa45071-faae-5c43-9ae4-ed32fb232035@proventis.net> Date: Thu, 14 May 2020 20:30:53 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <72a02fe6b1b78120136cf7f96cd35c0c2ed2f4d2.camel@cybertec.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 14.05.20 um 15:36 schrieb Laurenz Albe: > Interesting; only recently I played with that a little and found that > that is not necessarily true: > > https://www.cybertec-postgresql.com/en/binary-data-performance-in-postgresql/ > > Yours, > Laurenz Albe We used lo a lot in a project for large uploads (>4GB files). Really useful in a cloud environment. I was interested in speed camparison myself and made a similar test with network connection and without pg specific code. https://github.com/5UtJAjiRWj1q/psql-lob-performance File access is really fast and lo access is much slower than bytea (as expected). But content size limitation and memory consumption for bytea is problematic. regards Thomas