Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aL6hX-0000dR-5E for pgsql-sql@arkaria.postgresql.org; Mon, 18 Jan 2016 10:06:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aL6hW-0005H9-O8 for pgsql-sql@arkaria.postgresql.org; Mon, 18 Jan 2016 10:06:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aL6gY-0003yy-Sm for pgsql-sql@postgresql.org; Mon, 18 Jan 2016 10:05:19 +0000 Received: from mout.gmx.net ([212.227.15.19]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1aL6gR-0006kg-MU for pgsql-sql@postgresql.org; Mon, 18 Jan 2016 10:05:17 +0000 Received: from hermes ([84.133.76.93]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0LaXEN-1Zs3nn102x-00mK0n for ; Mon, 18 Jan 2016 11:05:08 +0100 Received: from ncq by hermes with local (Exim 4.86) (envelope-from ) id 1aL6gN-0006Bh-D4 for pgsql-sql@postgresql.org; Mon, 18 Jan 2016 11:05:07 +0100 Date: Mon, 18 Jan 2016 11:05:07 +0100 From: Karsten Hilbert To: pgsql-sql@postgresql.org Subject: Re: BYTEA Message-ID: <20160118100507.GA23017@hermes.hilbert.loc> References: <194527298.6807703.1453059218766.JavaMail.yahoo.ref@mail.yahoo.com> <194527298.6807703.1453059218766.JavaMail.yahoo@mail.yahoo.com> <20160118002543.GC11533@zip.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20160118002543.GC11533@zip.com.au> Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) User-Agent: Mutt/1.5.24 (2015-08-30) X-Provags-ID: V03:K0:3rl2ybJ6kudMScyR8yyKRzArrELbzWSox2fg2QWoKmNRo8pY6Q1 pUkPlC+ahi1iLCmWsbHGeo2nP+i+jyLYTt3t89xpP8xaYYgbvU9hVYFNtLA/hlmY+6qYKZL wRU38U5YI4Unls457eGaZSKTqAimD8KIdthaZjvo6wwq23vJUc3ZCIEcpXXpXL/cL/6q7dm eJkArbaYDIhe8sLTfgRyw== X-UI-Out-Filterresults: notjunk:1;V01:K0:icxxngqrmT8=:mCYF6hAQ9UntrZS9jQnj9x Fw5gPsZQjelD6wiWzUUTMiNhRA0rr3UPubhIdm/doSUNkUs4OsQ+vYPwkddzrhbkMkKcs615Y g3EuxbqxxTuqpheO9dbDFvHAHzoFyOORPdDjPR0CWoK3kcFcE79F6bYVRmyR9vgejBbeK644X jVkxwEoGSvAR7DLrX7tvogD7owiTNFGNgitXUlll1PwApzwDwx7JS7VHCeXUdnrNUZdqLzsiD c/A4uHc3cS8DlTl381jW7PivonPp9x+WULo/YgQXPDbYX3GnVtBiqsBtf0SD83XTL4BUzYDEW 1BQgQ5uPChxNRfVb5aXH/LGIrISrq1eBM7TD7ZWqrtuA3f7453KjjZxAffqeDCl0WR7n37e57 mjXp8pXomNGaiIforfmn+w65cJXx/FbsABcjHnfamoyZkteQyOQTa3t3XkQqyp7oBBGdNboAv 4st5JDaVzZbdpChcQ+HtmlfCa7upNmwCMgP974C/WNWZk8cHmtdqJ/U8kodHEBjPu1tquJs4G 2YHBl1HuOWOLT8blq6xgc2VB3o1/P5nHvdlYpQ1NH/SjxvvZqWbNdu46Odrg2Q/VGsWeIkp1N WQL86jh2claA4sAbb68C+cpzOMsgo3UaW3awy5P4J8uS/Iy6UAUfC4RxOJPHFfPYAq2yY7VQB 6N2AUgiS75DzOj+g09jHa0e5oSj8xq7Ml4Bi9SHeKdwUYpUsdvVg8Vx6JPxJXYvMgZ1vMAmMy skoQBaEUZeoiOW9ckaagWZZa1tVi/grPU+GrZZ9Hh7k5QUq4an5u1yusev0= X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On Mon, Jan 18, 2016 at 11:25:43AM +1100, Cat wrote: > On Sun, Jan 17, 2016 at 07:33:38PM +0000, Eugene Yin wrote: > > Pg 9.4+ > > Storing binary data using bytea or text data types > > - Pluses > > - Storing and Accessing entry utilizes the same interface when accessing any other data type or record. > > - No need to track OID of a "large object" you create > > > > - Minus > > > > - bytea and text data type both use TOAST (details here) > > - limited to 1G per entry > > - 4 Billion (> 2KB) entries per table max. > > > > - Need to escape/encode binary data before sending to DB then do the reverse after retrieving the data > > - Memory requirements on the server can be steep even on a small record set.  > > https://wiki.postgresql.org/wiki/BinaryFilesInDB > > Would http://multicorn.org/foreign-data-wrappers/#idfilesystem-foreign-data-wrapper be of greater use? It would certainly be of use to add that option to the aforementioned wiki page. Karsten -- GPG key ID E4071346 @ eu.pool.sks-keyservers.net E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346 -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql