BLOBs vs BYTEA

From: "Sam Adams" <samadams(at)myfastmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: BLOBs vs BYTEA
Date: 2005-02-01 02:26:30
Message-ID: 1107224790.13576.214020918@webmail.messagingengine.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

Apologies if I've already sent a post asking this but I'm not sure if it
actually went through last time as it doesn't seem to be in my sent
items box.

Anyway, I was wondering which would be a better way to store a large
amount of files each a few megabytes in size. There could be hundreds of
thousands of files altogether. If stored as BYTEAs this would put them
all in a single table. Would this effect performance considerablely? I
assume if there were thousands then it would. But if the data is stored
as BLOBs then aren't they store inside the database just in another
table? Wouldn't this also be undesirable. Would it be better to store
them normally on the file system and just provide the path and file name
in the database. Obviously this wont provide any security or backup but
would it make sense to do it this way with such a large amount of data?

Thanks.

-Sam

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2005-02-01 03:37:05 Re: plpgsql functions and NULLs
Previous Message Don Drake 2005-02-01 02:12:23 Re: plpgsql functions and NULLs