X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 151D49FA508 for ; Sun, 23 Jul 2006 22:00:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 22890-06 for ; Mon, 24 Jul 2006 01:00:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 541D99FA48B for ; Sun, 23 Jul 2006 22:00:30 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.7/8.13.7) with ESMTP id k6O109ju013926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 23 Jul 2006 19:00:12 -0600 (MDT) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.6/8.13.6) with ESMTP id k6O108B7020754; Sun, 23 Jul 2006 19:00:08 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.6/8.13.6/Submit) id k6O108Vm020753; Sun, 23 Jul 2006 19:00:08 -0600 (MDT) (envelope-from mfuhr) Date: Sun, 23 Jul 2006 19:00:08 -0600 From: Michael Fuhr To: Mark Matthews Cc: pgsql-admin@postgresql.org Subject: Re: DBA tasks Message-ID: <20060724010008.GA20562@winnie.fuhr.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/186 X-Sequence-Number: 22432 On Mon, Jul 24, 2006 at 08:43:15AM +1000, Mark Matthews wrote: > Can anyone recommend good reference text, web or other, for general > PostgreSQL DBA tasks. The PostgreSQL documentation is a good place to start. See "Server Administration," especially the chapters concerning routine maintenance, backup and restore, and monitoring. http://www.postgresql.org/docs/8.1/interactive/admin.html (Adjust the link to match the version you're running.) > Stuff like: > * Things to do to clean up periodically (CLUSTER, VACUUM FULL, etc) See above. > * How to analyse queries to optimise data retrieval (Use of EXPLAIN, > etc) See "Performance Tips" in the documentation and the tuning documents at powerpostgresql.com. You could also peruse the list archives, especially pgsql-performance, to see how real performance problems have been investigated and addressed. For example, search for threads that contain the words "EXPLAIN ANALYZE". http://www.postgresql.org/docs/8.1/interactive/performance-tips.html http://www.powerpostgresql.com/Docs/ http://archives.postgresql.org/pgsql-performance/ The General Bits newsletter has interesting articles; see the Archives and General Tidbits links. http://www.varlena.com/varlena/GeneralBits/ > We are running Debian stable (sarge) and therefore 7.4. Moving to 8.1 > soon (hopefully) Before upgrading read the Release Notes for all newer versions to see what changes you'll be getting. See also "If You Are Upgrading" in the Installation Instructions and read the Backup and Restore chapter, which has a "Migration Between Releases" section. http://www.postgresql.org/docs/8.1/interactive/release.html http://www.postgresql.org/docs/8.1/interactive/install-upgrading.html http://www.postgresql.org/docs/8.1/interactive/migration.html -- Michael Fuhr