gooderp18绿色标准版
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

30 行
4.0KB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>34.2. Implementation Features</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="lo-intro.html" title="34.1. Introduction" /><link rel="next" href="lo-interfaces.html" title="34.3. Client Interfaces" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">34.2. Implementation Features</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="lo-intro.html" title="34.1. Introduction">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="largeobjects.html" title="Chapter 34. Large Objects">Up</a></td><th width="60%" align="center">Chapter 34. Large Objects</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 12.4 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="lo-interfaces.html" title="34.3. Client Interfaces">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="LO-IMPLEMENTATION"><div class="titlepage"><div><div><h2 class="title" style="clear: both">34.2. Implementation Features</h2></div></div></div><p>
  3. The large object implementation breaks large
  4. objects up into <span class="quote">“<span class="quote">chunks</span>”</span> and stores the chunks in
  5. rows in the database. A B-tree index guarantees fast
  6. searches for the correct chunk number when doing random
  7. access reads and writes.
  8. </p><p>
  9. The chunks stored for a large object do not have to be contiguous.
  10. For example, if an application opens a new large object, seeks to offset
  11. 1000000, and writes a few bytes there, this does not result in allocation
  12. of 1000000 bytes worth of storage; only of chunks covering the range of
  13. data bytes actually written. A read operation will, however, read out
  14. zeroes for any unallocated locations preceding the last existing chunk.
  15. This corresponds to the common behavior of <span class="quote">“<span class="quote">sparsely allocated</span>”</span>
  16. files in <acronym class="acronym">Unix</acronym> file systems.
  17. </p><p>
  18. As of <span class="productname">PostgreSQL</span> 9.0, large objects have an owner
  19. and a set of access permissions, which can be managed using
  20. <a class="xref" href="sql-grant.html" title="GRANT"><span class="refentrytitle">GRANT</span></a> and
  21. <a class="xref" href="sql-revoke.html" title="REVOKE"><span class="refentrytitle">REVOKE</span></a>.
  22. <code class="literal">SELECT</code> privileges are required to read a large
  23. object, and
  24. <code class="literal">UPDATE</code> privileges are required to write or
  25. truncate it.
  26. Only the large object's owner (or a database superuser) can delete,
  27. comment on, or change the owner of a large object.
  28. To adjust this behavior for compatibility with prior releases, see the
  29. <a class="xref" href="runtime-config-compatible.html#GUC-LO-COMPAT-PRIVILEGES">lo_compat_privileges</a> run-time parameter.
  30. </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="lo-intro.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="largeobjects.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="lo-interfaces.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">34.1. Introduction </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 34.3. Client Interfaces</td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1