How are blobs (oid) stored?

Started by Jérôme Etévéover 16 years ago3 messagesgeneral
Jump to latest
#1Jérôme Etévé
jerome.eteve@gmail.com

Hi all,

I know this is none of the user's business, but I'm wondering how
blob's implemented as oid are stored in the postgresql data storage.
Are each of them kept in a separate file, or are they chunked into
pieces and scattered ?

Thanks !

Jerome.

--
Jerome Eteve.
http://www.eteve.net
jerome@eteve.net

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Jérôme Etévé (#1)
Re: How are blobs (oid) stored?

=?UTF-8?B?SsOpcsO0bWUgRXTDqXbDqQ==?= <jerome.eteve@gmail.com> writes:

I know this is none of the user's business, but I'm wondering how
blob's implemented as oid are stored in the postgresql data storage.
Are each of them kept in a separate file, or are they chunked into
pieces and scattered ?

They're in chunks in the pg_largeobject catalog.
http://developer.postgresql.org/pgdocs/postgres/catalog-pg-largeobject.html

regards, tom lane

#3Jérôme Etévé
jerome.eteve@gmail.com
In reply to: Tom Lane (#2)
Re: How are blobs (oid) stored?

Thanks Tom.

J.

2009/11/26 Tom Lane <tgl@sss.pgh.pa.us>:

=?UTF-8?B?SsOpcsO0bWUgRXTDqXbDqQ==?= <jerome.eteve@gmail.com> writes:

I know this is none of the user's business, but I'm wondering how
blob's implemented as oid are stored in the postgresql data storage.
Are each of them kept in a separate file, or are they chunked into
pieces and scattered ?

They're in chunks in the pg_largeobject catalog.
http://developer.postgresql.org/pgdocs/postgres/catalog-pg-largeobject.html

regards, tom lane

--
Jerome Eteve.
http://www.eteve.net
jerome@eteve.net