readme.vacuumlo

来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· VACUUMLO 代码 · 共 59 行

VACUUMLO
59
字号
$PostgreSQL: pgsql/contrib/vacuumlo/README.vacuumlo,v 1.5 2005/06/23 00:06:37 tgl Exp $This is a simple utility that will remove any orphaned large objects out of aPostgreSQL database.  An orphaned LO is considered to be any LO whose OIDdoes not appear in any OID data column of the database.If you use this, you may also be interested in the lo_manage trigger incontrib/lo.  lo_manage is useful to try to avoid creating orphaned LOsin the first place.Compiling--------Simply run make. A single executable "vacuumlo" is created.Usage-----vacuumlo [options] database [database2 ... databasen]All databases named on the command line are processed.  Available optionsinclude:  -v            Write a lot of progress messages  -n            Don't remove large objects, just show what would be done  -U username   Username to connect as  -W            Prompt for password  -h hostname   Database server host  -p port       Database server portMethod------First, it builds a temporary table which contains all of the OIDs of thelarge objects in that database.It then scans through all columns in the database that are of type "oid"or "lo", and removes matching entries from the temporary table.The remaining entries in the temp table identify orphaned LOs.  These areremoved.Notes-----I decided to place this in contrib as it needs further testing, but hopefully,this (or a variant of it) would make it into the backend as a "vacuum lo"command in a later release.Peter Mount <peter@retep.org.uk>http://www.retep.org.ukMarch 21 1999Committed April 10 1999 Peter

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?