~ubuntu-branches/ubuntu/utopic/pgadmin3/utopic-proposed

« back to all changes in this revision

Viewing changes to docs/en_US/pg/catalog-pg-largeobject.html

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Enrici
  • Date: 2004-12-14 23:46:39 UTC
  • Revision ID: james.westby@ubuntu.com-20041214234639-tve0i5l49fq13jli
Tags: upstream-1.2.0
Import upstream version 1.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 
4
<title>41.19.�pg_largeobject</title>
 
5
<link rel="stylesheet" href="stylesheet.css" type="text/css">
 
6
<link rev="made" href="pgsql-docs@postgresql.org">
 
7
<meta name="generator" content="DocBook XSL Stylesheets V1.64.1">
 
8
<link rel="home" href="index.html" title="PostgreSQL 8.0.0beta5 Documentation">
 
9
<link rel="up" href="catalogs.html" title="Chapter�41.�System Catalogs">
 
10
<link rel="previous" href="catalog-pg-language.html" title="41.18.�pg_language">
 
11
<link rel="next" href="catalog-pg-listener.html" title="41.20.�pg_listener">
 
12
</head>
 
13
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="sect1" lang="en">
 
14
<div class="titlepage">
 
15
<div><div><h2 class="title" style="clear: both">
 
16
<a name="catalog-pg-largeobject"></a>41.19.�<tt class="structname">pg_largeobject</tt></h2></div></div>
 
17
<div></div>
 
18
</div>
 
19
<a name="id2726158"></a><p>   The catalog <tt class="structname">pg_largeobject</tt> holds the data making up
 
20
   &#8220;<span class="quote">large objects</span>&#8221;.  A large object is identified by an
 
21
   OID assigned when it is created.  Each large object is broken into
 
22
   segments or &#8220;<span class="quote">pages</span>&#8221; small enough to be conveniently stored as rows
 
23
   in <tt class="structname">pg_largeobject</tt>.
 
24
   The amount of data per page is defined to be <tt class="literal">LOBLKSIZE</tt> (which is currently
 
25
   <tt class="literal">BLCKSZ/4</tt>, or typically 2 kB).
 
26
  </p>
 
27
<div class="table">
 
28
<a name="id2726202"></a><p class="title"><b>Table�41.19.�<tt class="structname">pg_largeobject</tt> Columns</b></p>
 
29
<table summary="pg_largeobject Columns" border="1">
 
30
<colgroup>
 
31
<col>
 
32
<col>
 
33
<col>
 
34
<col>
 
35
</colgroup>
 
36
<thead><tr>
 
37
<th>Name</th>
 
38
<th>Type</th>
 
39
<th>References</th>
 
40
<th>Description</th>
 
41
</tr></thead>
 
42
<tbody>
 
43
<tr>
 
44
<td><tt class="structfield">loid</tt></td>
 
45
<td><tt class="type">oid</tt></td>
 
46
<td>�</td>
 
47
<td>Identifier of the large object that includes this page</td>
 
48
</tr>
 
49
<tr>
 
50
<td><tt class="structfield">pageno</tt></td>
 
51
<td><tt class="type">int4</tt></td>
 
52
<td>�</td>
 
53
<td>Page number of this page within its large object
 
54
      (counting from zero)</td>
 
55
</tr>
 
56
<tr>
 
57
<td><tt class="structfield">data</tt></td>
 
58
<td><tt class="type">bytea</tt></td>
 
59
<td>�</td>
 
60
<td>       Actual data stored in the large object.
 
61
       This will never be more than <tt class="symbol">LOBLKSIZE</tt> bytes and may be less.
 
62
      </td>
 
63
</tr>
 
64
</tbody>
 
65
</table>
 
66
</div>
 
67
<p>   Each row of <tt class="structname">pg_largeobject</tt> holds data
 
68
   for one page of a large object, beginning at
 
69
   byte offset (<tt class="literal">pageno * LOBLKSIZE</tt>) within the object.  The implementation
 
70
   allows sparse storage: pages may be missing, and may be shorter than
 
71
   <tt class="literal">LOBLKSIZE</tt> bytes even if they are not the last page of the object.
 
72
   Missing regions within a large object read as zeroes.
 
73
  </p>
 
74
</div></body>
 
75
</html>