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 1jM95N-00020z-8z for pgsql-admin@arkaria.postgresql.org; Wed, 08 Apr 2020 11:41:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jM95M-0006Aj-67 for pgsql-admin@arkaria.postgresql.org; Wed, 08 Apr 2020 11:41:36 +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 1jM95L-00069s-M3 for pgsql-admin@lists.postgresql.org; Wed, 08 Apr 2020 11:41:35 +0000 Received: from mail.dalibo.com ([212.85.157.172]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM95I-00072z-I2 for pgsql-admin@lists.postgresql.org; Wed, 08 Apr 2020 11:41:34 +0000 Received: from [192.168.74.150] (82-64-99-9.subs.proxad.net [82.64.99.9]) by mail.dalibo.com (Postfix) with ESMTPSA id 0CC221F820; Wed, 8 Apr 2020 13:41:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1586346087; bh=z8FNkSVER3cVcX12zBItPM2RHw8xqP6q1DEW480Xq8k=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=E3/s9P8O94VsiXcrdRDh4iiD+hHy+jsqghYrvIaCUkr5HefwPdXszLlsGw7mMHNfV nAF4Vg7LO31tilRu7gY43/Sj0F/gnl8pZb5lo5Sl2Oaa51S8YhdIvXEyT4ls455Ytn oYDIGMCHDu32UUPU7ZMI8Eref2is3GxVwFHP/gGY= Subject: Re: How to get more than 2^32 BLOBs To: Donato Marrazzo , Laurenz Albe Cc: pgsql-admin@lists.postgresql.org References: <98e38782369def5f1fb865533ab22d828b442d78.camel@cybertec.at> From: Christophe Courtois Organization: Dalibo Message-ID: Date: Wed, 8 Apr 2020 13:41:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: fr-FR Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, Le 08/04/2020 à 12:12, Donato Marrazzo a écrit : > Hi Laurenz, > thank you for your reply. > Are you aware of any performance drawback? We had a customer with millions of small Large Objects, in part because his application forgot to unlink them. As a consequence, pg_dump was using huge amounts of memory, making a backup impossible. It was with PG 9.5, I don't think the situation improved since. > Il giorno mer 8 apr 2020 alle ore 12:06 Laurenz Albe > > ha scritto: ... > > I'm working on a use case were there are many tables with blobs > (on average not so large 32KB). > > I foresee that in 2-3 years time frame, the limit of overall blobs > will be breached: more than 2^32 blobs. > > - Is there a way to change the OID limit? > > - Should we switch to a bytea implementation? > > - Are there any drawback of bytea except the maximum space? > Don't use large objects.  They are only useful if > 1) you have files larger than 1GB or > 2) you need to stream writes > > There are no such limitations if you use the "bytea" data type, and > it is much simpler to handle at the same time. +1 -- Christophe Courtois Consultant Dalibo https://dalibo.com/