X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 18AF0D9394 for ; Fri, 14 Oct 2005 10:19:02 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85697-09 for ; Fri, 14 Oct 2005 13:18:54 +0000 (GMT) Received: from errol.lancs.ac.uk (errol.lancs.ac.uk [148.88.0.66]) by svr1.postgresql.org (Postfix) with ESMTP id 17929D8CAA for ; Fri, 14 Oct 2005 10:18:55 -0300 (ADT) Received: from marl.lancs.ac.uk ([148.88.1.10]) by errol.lancs.ac.uk with esmtp (Exim 4.52) id 1EQPSd-0000eC-BL for pgsql-admin@postgresql.org; Fri, 14 Oct 2005 14:18:59 +0100 Received: from ma-lts03.lancs.ac.uk ([148.88.7.55]) by marl.lancs.ac.uk with esmtp (Exim 4.52) id 1EQPSd-0006di-Dl for pgsql-admin@postgresql.org; Fri, 14 Oct 2005 14:18:59 +0100 Message-ID: <434FB046.5070207@lancaster.ac.uk> Date: Fri, 14 Oct 2005 14:19:02 +0100 From: Chris Jewell User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Monitoring database for changes - backup purposes Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200510/164 X-Sequence-Number: 19236 Hi, I have a query about a backup policy that I wish to implement. Currently, we are running a PostgreSQL server with a very large database on it. The database consists of a core of read-only tables, with tables created by the users going by default into the user's own schemas. For backup purposes, I have a script that uses pg_dump to create dumps of the individual user schemas. However, this is mainly a read-only database and information is added or updated only rarely. What I really need is a method of monitoring the database, such that my backup script will only back any one schema up if it has changed since it was last backed up. Is there any way to do this? Is there a checksum function or something that I could use? Thanks, Chris -- Chris Jewell, BSc(Hons), BVSc, MRCVS Dept of Maths and Statistics Fylde College Lancaster University Lancaster Lancs LA1 4YF