Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1938AB5F411 for ; Thu, 19 May 2011 11:03:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 83088-01-2 for ; Thu, 19 May 2011 14:03:50 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mail.postgresql.org (Postfix) with SMTP id 1021EB5DCF6 for ; Thu, 19 May 2011 10:53:34 -0300 (ADT) Received: (qmail invoked by alias); 19 May 2011 13:53:32 -0000 Received: from p57AC8879.dip0.t-ipconnect.de (EHLO hermes.hilbert.loc) [87.172.136.121] by mail.gmx.net (mp047) with SMTP; 19 May 2011 15:53:32 +0200 X-Authenticated: #1433807 X-Provags-ID: V01U2FsdGVkX19BCqUea/NBPvo+BLRogiedwuPXWgtU8/1i/G0EII knZgDz0YGy5fIc Received: from ncq by hermes.hilbert.loc with local (Exim 4.76) (envelope-from ) id 1QN3fP-0002OZ-GK for pgsql-sql@postgresql.org; Thu, 19 May 2011 15:53:31 +0200 Date: Thu, 19 May 2011 15:53:31 +0200 From: Karsten Hilbert To: pgsql-sql@postgresql.org Subject: Re: column type for pdf file Message-ID: <20110519135331.GI2381@hermes.hilbert.loc> References: <4DD42A1C.30202@encs.concordia.ca> <4DD4301F.4010403@ulb.ac.be> <20110518210041.GF2498@hermes.hilbert.loc> <4DD43867.2040709@ulb.ac.be> <4DD47D28.3070207@postnewspapers.com.au> <4DD4B1EB.50202@techbaza.pl> <4DD51DAA.4010706@encs.concordia.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DD51DAA.4010706@encs.concordia.ca> User-Agent: Mutt/1.5.21 (2010-09-15) X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201105/117 X-Sequence-Number: 35401 On Thu, May 19, 2011 at 09:39:54AM -0400, Emi Lu wrote: > All right, it seems that everyone thinks saving a pdf into postgresql > is not a good idea. No. > As a summary, disadvantages are: > ================================== > . Memory issue when read/save/retrieve the file > . Increase load Those can be a consideration, yes. > . Consume connections You will need a connection to the database anyway. There's no need to use another one. > . during transaction lo may be lost? Huh ? > . file systems do better than DB That's not a fact but rather an assertion. And a partial one at that. You may want to search the archives a bit as this has been discussed at length various times. Karsten -- GPG key ID E4071346 @ gpg-keyserver.de E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346