This file is indexed.

/usr/share/doc/python-psycopg2-docs/html/index.html is in python-psycopg2-doc 2.4.5-1build5.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<!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>Psycopg – PostgreSQL database adapter for Python &mdash; Psycopg 2.4.5 documentation</title>
    
    <link rel="stylesheet" href="_static/psycopg.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    './',
        VERSION:     '2.4.5',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="Psycopg 2.4.5 documentation" href="#" />
    <link rel="next" title="Basic module usage" href="usage.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="usage.html" title="Basic module usage"
             accesskey="N">next</a> |</li>
        <li><a href="#">Psycopg 2.4.5 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="psycopg-postgresql-database-adapter-for-python">
<h1>Psycopg &#8211; PostgreSQL database adapter for Python<a class="headerlink" href="#psycopg-postgresql-database-adapter-for-python" title="Permalink to this headline"></a></h1>
<p><a class="reference external" href="http://initd.org/psycopg/">Psycopg</a> is a <a class="reference external" href="http://www.postgresql.org/">PostgreSQL</a> database adapter for the <a class="reference external" href="http://www.python.org/">Python</a> programming
language.  Its main features are that it supports the full Python <a class="reference external" href="http://www.python.org/dev/peps/pep-0249/">DB API 2.0</a>
and it is thread safe (threads can share the connections). It was designed for
heavily multi-threaded applications that create and destroy lots of cursors and
make a large number of concurrent <tt class="sql docutils literal"><span class="pre">INSERT</span></tt>s or <tt class="sql docutils literal"><span class="pre">UPDATE</span></tt>s.
The Psycopg distribution includes ZPsycopgDA, a <a class="reference external" href="http://www.zope.org/">Zope</a> Database Adapter.</p>
<p>Psycopg 2 is mostly implemented in C as a <a class="reference external" href="http://www.postgresql.org/docs/current/static/libpq.html">libpq</a> wrapper, resulting in being
both efficient and secure. It features client-side and <a class="reference internal" href="usage.html#server-side-cursors"><em>server-side</em></a> cursors, <a class="reference internal" href="advanced.html#async-support"><em>asynchronous communication</em></a> and <a class="reference internal" href="advanced.html#async-notify"><em>notifications</em></a>, <a class="reference external" href="http://www.postgresql.org/docs/current/static/sql-copy.html"><tt class="sql docutils literal"><span class="pre">COPY</span> <span class="pre">TO/COPY</span> <span class="pre">FROM</span></tt></a>
support, and a flexible <a class="reference internal" href="usage.html#python-types-adaptation"><em>objects adaptation system</em></a>. Many basic Python types are supported
out-of-the-box and mapped to matching PostgreSQL data types, such as strings
(both bytes and Unicode), numbers (ints, longs, floats, decimals), booleans and
datetime objects (both built-in and <a class="reference external" href="http://www.egenix.com/products/python/mxBase/mxDateTime/">mx.DateTime</a>), several types of
<a class="reference internal" href="usage.html#adapt-binary"><em>binary objects</em></a>. Also available are mappings between lists
and PostgreSQL arrays of any supported type, between <a class="reference internal" href="extras.html#adapt-hstore"><em>dictionaries and
PostgreSQL hstores</em></a>, and between <a class="reference internal" href="extras.html#adapt-composite"><em>tuples/namedtuples and
PostgreSQL composite types</em></a>.</p>
<p>Psycopg 2 is both Unicode and Python 3 friendly.</p>
<p class="rubric">Contents</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="usage.html">Basic module usage</a><ul>
<li class="toctree-l2"><a class="reference internal" href="usage.html#passing-parameters-to-sql-queries">Passing parameters to SQL queries</a></li>
<li class="toctree-l2"><a class="reference internal" href="usage.html#adaptation-of-python-values-to-sql-types">Adaptation of Python values to SQL types</a></li>
<li class="toctree-l2"><a class="reference internal" href="usage.html#transactions-control">Transactions control</a></li>
<li class="toctree-l2"><a class="reference internal" href="usage.html#server-side-cursors">Server side cursors</a></li>
<li class="toctree-l2"><a class="reference internal" href="usage.html#thread-and-process-safety">Thread and process safety</a></li>
<li class="toctree-l2"><a class="reference internal" href="usage.html#using-copy-to-and-copy-from">Using COPY TO and COPY FROM</a></li>
<li class="toctree-l2"><a class="reference internal" href="usage.html#access-to-postgresql-large-objects">Access to PostgreSQL large objects</a></li>
<li class="toctree-l2"><a class="reference internal" href="usage.html#two-phase-commit-protocol-support">Two-Phase Commit protocol support</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="module.html">The <tt class="docutils literal"><span class="pre">psycopg2</span></tt> module content</a><ul>
<li class="toctree-l2"><a class="reference internal" href="module.html#exceptions">Exceptions</a></li>
<li class="toctree-l2"><a class="reference internal" href="module.html#type-objects-and-constructors">Type Objects and Constructors</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="connection.html">The <tt class="docutils literal"><span class="pre">connection</span></tt> class</a></li>
<li class="toctree-l1"><a class="reference internal" href="cursor.html">The <tt class="docutils literal"><span class="pre">cursor</span></tt> class</a></li>
<li class="toctree-l1"><a class="reference internal" href="advanced.html">More advanced topics</a><ul>
<li class="toctree-l2"><a class="reference internal" href="advanced.html#connection-and-cursor-factories">Connection and cursor factories</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced.html#adapting-new-python-types-to-sql-syntax">Adapting new Python types to SQL syntax</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced.html#type-casting-of-sql-types-into-python-objects">Type casting of SQL types into Python objects</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced.html#asynchronous-notifications">Asynchronous notifications</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced.html#asynchronous-support">Asynchronous support</a></li>
<li class="toctree-l2"><a class="reference internal" href="advanced.html#support-to-coroutine-libraries">Support to coroutine libraries</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="extensions.html"><tt class="docutils literal"><span class="pre">psycopg2.extensions</span></tt> &#8211; Extensions to the DB API</a><ul>
<li class="toctree-l2"><a class="reference internal" href="extensions.html#sql-adaptation-protocol-objects">SQL adaptation protocol objects</a></li>
<li class="toctree-l2"><a class="reference internal" href="extensions.html#database-types-casting-functions">Database types casting functions</a></li>
<li class="toctree-l2"><a class="reference internal" href="extensions.html#additional-exceptions">Additional exceptions</a></li>
<li class="toctree-l2"><a class="reference internal" href="extensions.html#isolation-level-constants">Isolation level constants</a></li>
<li class="toctree-l2"><a class="reference internal" href="extensions.html#transaction-status-constants">Transaction status constants</a></li>
<li class="toctree-l2"><a class="reference internal" href="extensions.html#connection-status-constants">Connection status constants</a></li>
<li class="toctree-l2"><a class="reference internal" href="extensions.html#poll-constants">Poll constants</a></li>
<li class="toctree-l2"><a class="reference internal" href="extensions.html#additional-database-types">Additional database types</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="tz.html"><tt class="docutils literal"><span class="pre">psycopg2.tz</span></tt> &#8211;  <tt class="docutils literal"><span class="pre">tzinfo</span></tt> implementations for Psycopg 2</a></li>
<li class="toctree-l1"><a class="reference internal" href="pool.html"><tt class="docutils literal"><span class="pre">psycopg2.pool</span></tt> &#8211; Connections pooling</a></li>
<li class="toctree-l1"><a class="reference internal" href="extras.html"><tt class="docutils literal"><span class="pre">psycopg2.extras</span></tt> &#8211; Miscellaneous goodies for Psycopg 2</a><ul>
<li class="toctree-l2"><a class="reference internal" href="extras.html#connection-and-cursor-subclasses">Connection and cursor subclasses</a></li>
<li class="toctree-l2"><a class="reference internal" href="extras.html#additional-data-types">Additional data types</a></li>
<li class="toctree-l2"><a class="reference internal" href="extras.html#fractional-time-zones">Fractional time zones</a></li>
<li class="toctree-l2"><a class="reference internal" href="extras.html#coroutine-support">Coroutine support</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="errorcodes.html"><tt class="docutils literal"><span class="pre">psycopg2.errorcodes</span></tt> &#8211; Error codes defined by PostgreSQL</a></li>
<li class="toctree-l1"><a class="reference internal" href="faq.html">Frequently Asked Questions</a><ul>
<li class="toctree-l2"><a class="reference internal" href="faq.html#problems-with-transactions-handling">Problems with transactions handling</a></li>
<li class="toctree-l2"><a class="reference internal" href="faq.html#problems-with-type-conversions">Problems with type conversions</a></li>
<li class="toctree-l2"><a class="reference internal" href="faq.html#best-practices">Best practices</a></li>
<li class="toctree-l2"><a class="reference internal" href="faq.html#problems-compiling-and-deploying-psycopg2">Problems compiling and deploying psycopg2</a></li>
</ul>
</li>
</ul>
</div>
<p class="rubric">Indices and tables</p>
<ul class="simple">
<li><a class="reference internal" href="genindex.html"><em>Index</em></a></li>
<li><a class="reference internal" href="search.html"><em>Search Page</em></a></li>
</ul>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h4>Next topic</h4>
  <p class="topless"><a href="usage.html"
                        title="next chapter">Basic module usage</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/index.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="usage.html" title="Basic module usage"
             >next</a> |</li>
        <li><a href="#">Psycopg 2.4.5 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2001-2011, Federico Di Gregorio. Documentation by Daniele Varrazzo.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
    </div>
  </body>
</html>