Received: from mx99.openu.ac.il (arbel.openu.ac.il [147.233.32.4]) by hub.org (8.9.1/8.9.1) with ESMTP id FAA28309 for ; Sun, 24 Jan 1999 05:52:55 -0500 (EST) (envelope-from herouth@oumail.openu.ac.il) Received: from talmon.openu.ac.il (talmon.openu.ac.il [147.233.32.11]) by mx99.openu.ac.il (Postfix) with ESMTP for id B2A5D4B49C; Sun, 24 Jan 1999 12:52:53 +0200 (IST) Received: from [147.233.159.109] (mac-herouth.pc.openu.ac.il) by talmon.openu.ac.il (Netscape Messaging Server 3.54) with ESMTP id AAA7117 for ; Sun, 24 Jan 1999 12:53:56 +0200 X-Sender: herouth@shaked.cc.openu.ac.il Message-Id: In-Reply-To: <36A7C0BD.CC25B312@gesnet.net> References: <19990121200031.16915.rocketmail@send105.yahoomail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Sun, 24 Jan 1999 12:52:54 +0200 To: pgsql-sql@postgreSQL.org From: Herouth Maoz Subject: Re: [SQL] Java/JDBC/PGSQL Mailing List Archiver At 2:05 +0200 on 22/1/99, Fabrice Scemama wrote: > I'd rather not split text messages in 8k parts! > That's what BLOBS were designed for Just to give you a few off points on BLOBs: (1) They are not dumped with pg_dump, and you have to design your own backup procedure for them, which you will be able to integrate later with a dumped database. (2) You can't display them in a casual psql query. I usually use psql when I want to check something in my database. Storing the text in split records would allow you to view the content in psql. (3) Sometimes one needs to delete some data which was entered incorrectly or as a result of a buggy implementation. If you want to delete a large object you have to write a program. If you want to delete a bunch of split text records, you only have to enter psql and issue a DELETE statement in SQL. (4) You can't search on large objects. Not even an unindexed search. You have to retrieve every large object, and perform the search in the front end. If you had it in split text records, you would be able to search with LIKE or regexp. Attachments are a different story. All of the above applies when we are dealing with text processing. If the content is something other than text, you don't need to search it, there is no point in viewing it in PSQL because you need a proper viewer anyway, etc. So if you want to treat your attachments as binary objects, binary objects they should be. Herouth -- Herouth Maoz, Internet developer. Open University of Israel - Telem project http://telem.openu.ac.il/~herutma