X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 82D15D1D2F7 for ; Wed, 11 Feb 2004 13:05:22 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 93530-07 for ; Wed, 11 Feb 2004 09:05:07 -0400 (AST) Received: from mta03-svc.ntlworld.com (mta03-svc.ntlworld.com [62.253.162.43]) by svr1.postgresql.org (Postfix) with ESMTP id A3957D1DD60 for ; Wed, 11 Feb 2004 09:05:03 -0400 (AST) Received: from [81.98.165.129] by mta03-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20040211130443.XRLC17812.mta03-svc.ntlworld.com@[81.98.165.129]> for ; Wed, 11 Feb 2004 13:04:43 +0000 Mime-Version: 1.0 (Apple Message framework v612) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: pgsql-sql@postgresql.org From: beyaNet Consultancy Subject: bytea or blobs? Date: Wed, 11 Feb 2004 13:05:04 +0000 X-Mailer: Apple Mail (2.612) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/161 X-Sequence-Number: 16852 Hi, what I am trying to do is to be able to store images in my database. What I wanted to know is this: 1. Would it be better to have the image field type as a bytea or a blob? I have heard it mentioned that bytea would be better as doing data dumps would also insure that the image was saved as well! 2. Would it be better to make reference to mp3 files (i.e. storing the address of the image /images/*.jpg) or is it feasible to store the mp3 in the database as bytea or blobs as well? many thanks in adavance