home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre2.z / postgre2 / ref / postquel / vacuum < prev   
Encoding:
Text File  |  1992-08-27  |  1.4 KB  |  55 lines

  1. .\" XXX standard disclaimer belongs here....
  2. .\" $Header: /private/postgres/ref/postquel/RCS/vacuum,v 1.3 1992/07/14 05:54:17 ptong Exp $
  3. .SP VACUUM COMMANDS 8/11/91
  4. .XA 2 Vacuum
  5. .uh NAME
  6. .lp
  7. vacuum \*- vacuum a database
  8. .uh SYNOPSIS
  9. .lp
  10. .(l
  11. \fBvacuum\fP
  12. .)l
  13. .uh DESCRIPTION
  14. .lp
  15. .b Vacuum
  16. is the \*(PP vacuum cleaner.
  17. It opens every class in the database,
  18. moves deleted records to the archive for archived relations,
  19. cleans out records from aborted transactions,
  20. and updates statistics in the system catalogs.
  21. The statistics maintained include the number of tuples
  22. and number of pages stored in all classes.
  23. Running
  24. .b vacuum
  25. periodically will increase \*(PP' speed in processing
  26. user queries.
  27. .lp
  28. The open database is the one that is
  29. vacuumed.
  30. This is a new \*(PQ command in Version \*(PV;
  31. earlier versions of \*(PP had a separate program for vacuuming
  32. databases.
  33. That program has been replaced by the
  34. .b vacuum
  35. shell script;
  36. see
  37. .b vacuum (unix)
  38. for details.
  39. .lp
  40. We recommend that production databases be vacuumed nightly,
  41. in order to keep statistics relatively current.
  42. The
  43. .b vacuum
  44. query may be executed at any time, however.
  45. In particular, after copying a large class into \*(PP or deleting a large
  46. number of records, it may be a good idea to issue a
  47. .b vacuum
  48. query.
  49. This will update the system catalogs with the results of all recent
  50. changes, and allow the \*(PP query optimizer to make better choices in
  51. planning user queries.
  52. .uh "SEE ALSO"
  53. .lp
  54. vacuum(unix).
  55.