1VACUUMLO(1)              PostgreSQL 11.3 Documentation             VACUUMLO(1)
2
3
4

NAME

6       vacuumlo - remove orphaned large objects from a PostgreSQL database
7

SYNOPSIS

9       vacuumlo [option...] dbname...
10

DESCRIPTION

12       vacuumlo is a simple utility program that will remove any “orphaned”
13       large objects from a PostgreSQL database. An orphaned large object (LO)
14       is considered to be any LO whose OID does not appear in any oid or lo
15       data column of the database.
16
17       If you use this, you may also be interested in the lo_manage trigger in
18       the lo module.  lo_manage is useful to try to avoid creating orphaned
19       LOs in the first place.
20
21       All databases named on the command line are processed.
22

OPTIONS

24       vacuumlo accepts the following command-line arguments:
25
26       -l limit
27           Remove no more than limit large objects per transaction (default
28           1000). Since the server acquires a lock per LO removed, removing
29           too many LOs in one transaction risks exceeding
30           max_locks_per_transaction. Set the limit to zero if you want all
31           removals done in a single transaction.
32
33       -n
34           Don't remove anything, just show what would be done.
35
36       -v
37           Write a lot of progress messages.
38
39       -V
40       --version
41           Print the vacuumlo version and exit.
42
43       -?
44       --help
45           Show help about vacuumlo command line arguments, and exit.
46
47       vacuumlo also accepts the following command-line arguments for
48       connection parameters:
49
50       -h hostname
51           Database server's host.
52
53       -p port
54           Database server's port.
55
56       -U username
57           User name to connect as.
58
59       -w
60       --no-password
61           Never issue a password prompt. If the server requires password
62           authentication and a password is not available by other means such
63           as a .pgpass file, the connection attempt will fail. This option
64           can be useful in batch jobs and scripts where no user is present to
65           enter a password.
66
67       -W
68           Force vacuumlo to prompt for a password before connecting to a
69           database.
70
71           This option is never essential, since vacuumlo will automatically
72           prompt for a password if the server demands password
73           authentication. However, vacuumlo will waste a connection attempt
74           finding out that the server wants a password. In some cases it is
75           worth typing -W to avoid the extra connection attempt.
76

NOTES

78       vacuumlo works by the following method: First, vacuumlo builds a
79       temporary table which contains all of the OIDs of the large objects in
80       the selected database. It then scans through all columns in the
81       database that are of type oid or lo, and removes matching entries from
82       the temporary table. (Note: Only types with these names are considered;
83       in particular, domains over them are not considered.) The remaining
84       entries in the temporary table identify orphaned LOs. These are
85       removed.
86

AUTHOR

88       Peter Mount <peter@retep.org.uk>
89
90
91
92PostgreSQL 11.3                      2019                          VACUUMLO(1)
Impressum