Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 415a9558429d583fc9b2617edd1d24a6 > files > 903

postgresql8.3-docs-8.3.8-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>vacuumlo</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REV="MADE"
HREF="mailto:pgsql-docs@postgresql.org"><LINK
REL="HOME"
TITLE="PostgreSQL 8.3.8 Documentation"
HREF="index.html"><LINK
REL="UP"
TITLE="Additional Supplied Modules"
HREF="contrib.html"><LINK
REL="PREVIOUS"
TITLE="uuid-ossp"
HREF="uuid-ossp.html"><LINK
REL="NEXT"
TITLE="xml2"
HREF="xml2.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="stylesheet.css"><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=ISO-8859-1"><META
NAME="creation"
CONTENT="2009-09-04T05:13:45"></HEAD
><BODY
CLASS="SECT1"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="5"
ALIGN="center"
VALIGN="bottom"
>PostgreSQL 8.3.8 Documentation</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
HREF="uuid-ossp.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
HREF="contrib.html"
>Fast Backward</A
></TD
><TD
WIDTH="60%"
ALIGN="center"
VALIGN="bottom"
>Appendix F. Additional Supplied Modules</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="top"
><A
HREF="contrib.html"
>Fast Forward</A
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="top"
><A
HREF="xml2.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="VACUUMLO"
>F.33. vacuumlo</A
></H1
><A
NAME="AEN105337"
></A
><P
>  <SPAN
CLASS="APPLICATION"
>vacuumlo</SPAN
> is a simple utility program that will remove any
  <SPAN
CLASS="QUOTE"
>"orphaned"</SPAN
> large objects from a
  <SPAN
CLASS="PRODUCTNAME"
>PostgreSQL</SPAN
> database.  An orphaned large object (LO) is
  considered to be any LO whose OID does not appear in any <TT
CLASS="TYPE"
>oid</TT
> or
  <TT
CLASS="TYPE"
>lo</TT
> data column of the database.
 </P
><P
>  If you use this, you may also be interested in the <CODE
CLASS="FUNCTION"
>lo_manage</CODE
>
  trigger in <TT
CLASS="FILENAME"
>contrib/lo</TT
> (see <A
HREF="lo.html"
>Section F.14</A
>).
  <CODE
CLASS="FUNCTION"
>lo_manage</CODE
> is useful to try
  to avoid creating orphaned LOs in the first place.
 </P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN105350"
>F.33.1. Usage</A
></H2
><PRE
CLASS="SYNOPSIS"
>vacuumlo [options] database [database2 ... databaseN]
  </PRE
><P
>   All databases named on the command line are processed.  Available options
   include:
  </P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
><TT
CLASS="OPTION"
>-v</TT
></DT
><DD
><P
>Write a lot of progress messages.</P
></DD
><DT
><TT
CLASS="OPTION"
>-n</TT
></DT
><DD
><P
>Don't remove anything, just show what would be done.</P
></DD
><DT
><TT
CLASS="OPTION"
>-U</TT
> <TT
CLASS="REPLACEABLE"
><I
>username</I
></TT
></DT
><DD
><P
>Username to connect as.</P
></DD
><DT
><TT
CLASS="OPTION"
>-W</TT
></DT
><DD
><P
>      Force <SPAN
CLASS="APPLICATION"
>vacuumlo</SPAN
> to prompt for a
      password before connecting to a database.  
     </P
><P
>      This option is never essential, since
      <SPAN
CLASS="APPLICATION"
>vacuumlo</SPAN
> will automatically prompt
      for a password if the server demands password authentication.
      However, <SPAN
CLASS="APPLICATION"
>vacuumlo</SPAN
> will waste a
      connection attempt finding out that the server wants a password.
      In some cases it is worth typing <TT
CLASS="OPTION"
>-W</TT
> to avoid the extra
      connection attempt.
     </P
></DD
><DT
><TT
CLASS="OPTION"
>-h</TT
> <TT
CLASS="REPLACEABLE"
><I
>hostname</I
></TT
></DT
><DD
><P
>Database server's host.</P
></DD
><DT
><TT
CLASS="OPTION"
>-p</TT
> <TT
CLASS="REPLACEABLE"
><I
>port</I
></TT
></DT
><DD
><P
>Database server's port.</P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN105393"
>F.33.2. Method</A
></H2
><P
>   First, it builds a temporary table which contains all of the OIDs of the
   large objects in that database.
  </P
><P
>   It then scans through all columns in the database that are of type
   <TT
CLASS="TYPE"
>oid</TT
> or <TT
CLASS="TYPE"
>lo</TT
>, and removes matching entries from the
  temporary table.
  </P
><P
>   The remaining entries in the temp table identify orphaned LOs.
   These are removed.
  </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN105400"
>F.33.3. Author</A
></H2
><P
>   Peter Mount <CODE
CLASS="EMAIL"
>&#60;<A
HREF="mailto:peter@retep.org.uk"
>peter@retep.org.uk</A
>&#62;</CODE
>
  </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="uuid-ossp.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="xml2.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>uuid-ossp</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="contrib.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>xml2</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>