Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h44y2-0001kn-DD for pgsql-general@arkaria.postgresql.org; Wed, 13 Mar 2019 14:34:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h44y1-0004sk-4C for pgsql-general@arkaria.postgresql.org; Wed, 13 Mar 2019 14:34:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h44xM-000798-OI for pgsql-general@lists.postgresql.org; Wed, 13 Mar 2019 14:34:08 +0000 Received: from mx2a.mailbox.org ([2001:67c:2050:104:0:2:25:2] helo=mx2.mailbox.org) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h44xI-0002Jb-KQ for pgsql-general@postgresql.org; Wed, 13 Mar 2019 14:34:07 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 2B90BA1711; Wed, 13 Mar 2019 15:33:57 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id REFe94u-_-vB; Wed, 13 Mar 2019 15:33:51 +0100 (CET) Message-ID: <49bb4b7f88aae994e414d34e4dcd350c1217eccc.camel@cybertec.at> Subject: Re: Where to store Blobs? From: Laurenz Albe To: Thomas =?ISO-8859-1?Q?G=FCttler?= , "pgsql-general@postgresql.org" Date: Wed, 13 Mar 2019 15:33:50 +0100 In-Reply-To: <666a8edc-6d86-ad8f-4ff8-101f108e6aa5@thomas-guettler.de> References: <666a8edc-6d86-ad8f-4ff8-101f108e6aa5@thomas-guettler.de> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Güttler wrote: > Now I realized: Nobody talked about Blobs. > > I guess most people do not store Blobs in PostgresSQL. > > Where do you store Blobs? > > (In my case Blobs are PDF/image files with size up to 20 MByte. > I do not talk about very big blobs which are several hundret MByte) Ideally outside the database, if they are many. Large databases are harder to backup than large file systems. If you keep 20MB binaries in the database, you'd use the "bytea" data type. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com