Re: [GENERAL] Re: Large Objects

From: dustin sallings <dustin(at)spy(dot)net>
To: Jeroen Schaap <jeroen(at)rulffh(dot)medfac(dot)leidenuniv(dot)nl>
Cc: James Oden <joden(at)lee(dot)k12(dot)nc(dot)us>, pgsql-general(at)postgreSQL(dot)org, David Giffin <david(at)agent911(dot)com>
Subject: Re: [GENERAL] Re: Large Objects
Date: 1998-11-22 03:20:21
Message-ID: Pine.NEB.4.02.9811211909110.411-100000@dhcp-199.west.spy.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 20 Nov 1998, Jeroen Schaap wrote:

// Yes, it still is a seperate file... seems to be a straightforward
// approach. What's wrong with that?

There are two problems:

1) It's actually two files, which eats up a lot of inodes to store
the records, this is bad, and counter-intuitive.
2) They're all stored in the same directory, which happens to be
the same directory as the rest of the data, which means file
access will get slower as you add BLOBs.

One would be OK if it were one file per BLOB, though it'd be nicer
to manage it in files for blocks/pages instead of individual files.

Two should be fixed. At *least* have a BLOB subdirectory, but
preferebly, if you're going to be doing files like this, something like:

/usr/local/pgsql/data/base/dbname/blob/xx/yy/oid

where xx and yy come from a simple hash of the oid.

--
SA, beyond.com The world is watching America,
pub 1024/3CAE01D5 1994/11/03 Dustin Sallings <dustin(at)spy(dot)net>
| Key fingerprint = 87 02 57 08 02 D0 DA D6 C8 0F 3E 65 51 98 D8 BE
L________________________________________ and America is watching TV. __

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 1998-11-22 05:52:50 Re: [GENERAL] Re: Large Objects
Previous Message Dimitris Logothetis 1998-11-22 01:25:33 Is Postgresql multilingual?