Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by postgresql.org (Postfix) with ESMTP id 6393E47590B for ; Thu, 28 Feb 2002 17:56:55 -0500 (EST) Received: from [172.19.20.61] (helo=mrvdomng0.kundenserver.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 16gZTt-00002V-00 for pgsql-sql@postgresql.org; Thu, 28 Feb 2002 23:56:57 +0100 Received: from p5081e73b.dip0.t-ipconnect.de ([80.129.231.59] helo=h45.de) by mrvdomng0.kundenserver.de with esmtp (Exim 3.22 #2) id 16gZTs-000507-00 for pgsql-sql@postgresql.org; Thu, 28 Feb 2002 23:56:56 +0100 Received: from 10.0.1.8 (ident=unknown) by h45.de with esmtp (masqmail 0.2.3) id 16gZUG-7xO-00 for ; Thu, 28 Feb 2002 23:57:20 +0100 Received: by mork.h45.de (Postfix, from userid 1000) id 79FCB23CA6; Thu, 28 Feb 2002 23:56:17 +0100 (CET) Date: Thu, 28 Feb 2002 23:56:17 +0100 From: Alexander Steinert To: pgsql-sql@postgresql.org Subject: Re: Large Objects Message-ID: <20020228235617.A1403@tyche.svt.tu-harburg.de> Mail-Followup-To: Alexander Steinert , pgsql-sql@postgresql.org References: <59358A738F45D51186A30008C74CE250E81448@slc-exc1.ctron.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from chriskl@familyhealth.com.au on Thu, Feb 28, 2002 at 09:05:52AM +0800 X-Archive-Number: 200202/461 X-Sequence-Number: 6882 > Don't use them. They were needed when Postgres only supported 8k > per row. Now you can just use the 'text' datatype for text data > and the 'bytea' datatype for binary data. You have a limit of a > few gigs per row with them. The problem with the text or bytea type is, that inserting large amounts of data causes a big performance loss because everything must go through the SQL-Parser. I would be glad if someone would correct me. So far I have found no way to grant integrity / use PG's transactions for large objects with satisfying performance. lo_import/export for bytea would be a very nice interface to transfer directly between the database and files readable/writable by the client process. Suggestions are welcome. Stony