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 1jZE2H-00073N-5N for pgsql-general@arkaria.postgresql.org; Thu, 14 May 2020 13:36:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZE2G-000870-3b for pgsql-general@arkaria.postgresql.org; Thu, 14 May 2020 13:36:28 +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 1jZE2F-00086o-SI for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 13:36:27 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jZE2A-0000DZ-Vr for pgsql-general@lists.postgresql.org; Thu, 14 May 2020 13:36:26 +0000 Received: by mail-wr1-x442.google.com with SMTP id h17so4112616wrc.8 for ; Thu, 14 May 2020 06:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=LwAg1R0NsIJGN6RRoTmi4+9ks3t7KEWGIwVwdSGnedo=; b=ZV21rqaR7irAUjNBrcnABix9AfuWvOuNfjO7s+PpkPRMLoZXwvFXqSuD3+lOJpaawS JUzptc4ldnLkUQThp2SHB2cZffcT50Y/lT6U+Ru/n059NaxL7sAqnfXq8NGOMVX4LtEw XBrphkOfwhfTmRvL5pICRoLwMRBJFQEIRI8JKNzC2LHsaB5d4vVpMVA5XW6HS+6SMiVS efclXk32QxKBWctzC4IsjcAVgWejop2dQ9doQ4FC5iIO0Fcs9aL2Qr6M5+JwxHR/RJqX 3S6t040PJ7oqrZm7SYYAPnV8zXzPDjNGO9jCCqH2nmmM46u7crmB4eDlMOQN5VmAa5pQ XjQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=LwAg1R0NsIJGN6RRoTmi4+9ks3t7KEWGIwVwdSGnedo=; b=mPS7CCzOkibcWY3NNcWVtyuJuzSt/X3kS5VjPe4TmAOdTqH9xHGihplg3WAZBNSMDB 8mGGbuCxWECrtpmiQBQdX6TJjl50QTgo3QfGr+SYWG00QIroSq6St2hShtLVr6cj4HZp VNaWpEr0JVHvIKJYjktP4LkwW48ZLbHv97m8d9wqg0/85k3OaCvwxtIwY5xsUBu4FBwN amhS9u2x2F77MoPKano6eFRRU7dYfX/Zg5O/sfsO8jI5NpQW3RZks2AGIFLMTHTh/e4Z N2dTuYMYuQPpRTt52QPqeBLCdmTdqCK6wNfgii7mcKHa13mnr59T8SSMyOE68pVnYagx 6SDA== X-Gm-Message-State: AOAM530jMOMdWgdsJ46NvQL8Xql89p2v10tIW7INCkr8RdMmpbwnXCjp HA7KORQV1wmicCsxc6Ueh90+NA== X-Google-Smtp-Source: ABdhPJwR53TH+vwA5tdSW9MmhbgrU8CmuvswQL+OGx5zXola3scJmViYrSKuJGnacdLhR11Lvc5Tyg== X-Received: by 2002:adf:e784:: with SMTP id n4mr5880462wrm.170.1589463381546; Thu, 14 May 2020 06:36:21 -0700 (PDT) Received: from localhost.localdomain (217-149-169-148.nat.highway.telekom.at. [217.149.169.148]) by smtp.gmail.com with ESMTPSA id 37sm4086553wrk.61.2020.05.14.06.36.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 06:36:20 -0700 (PDT) Message-ID: <72a02fe6b1b78120136cf7f96cd35c0c2ed2f4d2.camel@cybertec.at> Subject: Re: Practical usage of large objects. From: Laurenz Albe To: Michael Paquier , Tom Lane Cc: Dmitry Igrishin , pgsql-general@lists.postgresql.org Date: Thu, 14 May 2020 15:36:19 +0200 In-Reply-To: <20200514035949.GD166343@paquier.xyz> References: <10209.1589392548@sss.pgh.pa.us> <20200514035949.GD166343@paquier.xyz> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, 2020-05-14 at 12:59 +0900, Michael Paquier wrote: > On Wed, May 13, 2020 at 01:55:48PM -0400, Tom Lane wrote: > > Dmitry Igrishin writes: > > > As you know, PostgreSQL has a large objects facility [1]. I'm curious > > > are there real systems which are use this feature? > > > > We get questions about it regularly, so yeah people use it. > > I recall that some applications where I work make use of it for some > rather large log-like data. At the end of the day, it really boils > down to if you wish to store blobs of data which are larger than 1GB, > the limit for toasted fields, as LOs can be up to 4TB. Also, updating > or reading a LO can be much cheaper than a toasted field, as the > latter would update/read the value as a whole. 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