Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
33.2. Implementation Features
Prev UpChapter 33. Large ObjectsHome Next

33.2. Implementation Features#

The large object implementation breaks large objects up intochunks and stores the chunks in rows in the database. A B-tree index guarantees fast searches for the correct chunk number when doing random access reads and writes.

The chunks stored for a large object do not have to be contiguous. For example, if an application opens a new large object, seeks to offset 1000000, and writes a few bytes there, this does not result in allocation of 1000000 bytes worth of storage; only of chunks covering the range of data bytes actually written. A read operation will, however, read out zeroes for any unallocated locations preceding the last existing chunk. This corresponds to the common behavior ofsparsely allocated files inUnix file systems.

As ofPostgreSQL 9.0, large objects have an owner and a set of access permissions, which can be managed usingGRANT andREVOKE.SELECT privileges are required to read a large object, andUPDATE privileges are required to write or truncate it. Only the large object's owner (or a database superuser) can delete, comment on, or change the owner of a large object. To adjust this behavior for compatibility with prior releases, see thelo_compat_privileges run-time parameter.


Prev Up Next
33.1. Introduction Home 33.3. Client Interfaces
pdfepub
Go to Postgres Pro Standard 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp