Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 073FB64FC7D for ; Tue, 21 Oct 2008 17:55:47 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 79814-01 for ; Tue, 21 Oct 2008 17:55:44 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E902C64FC5A for ; Tue, 21 Oct 2008 17:55:43 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m9LKtgkS009059; Tue, 21 Oct 2008 16:55:42 -0400 (EDT) To: Marc Fromm cc: "pgsql-admin@postgresql.org" Subject: Re: pg_dumpall size twist In-reply-to: References: Comments: In-reply-to Marc Fromm message dated "Tue, 21 Oct 2008 11:37:06 -0700" Date: Tue, 21 Oct 2008 16:55:42 -0400 Message-ID: <9058.1224622542@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/152 X-Sequence-Number: 30608 Marc Fromm writes: > It turns out that one specific database called postgres is growing each time I perform a restore from the pg_dumpall files. > The database postgres has gone from 5.1MB to 10MB to 15MB to 20MB. No other database is growing like this. The pg_dumpall is using the -c flag to drop databases before restoring them. > When I do a restore I do this command: psql -U postgres -f alldb postgres. > Has it something to do with using postgres as the starting db? Well, yeah: you can't drop the database you're connected to. It might be a good idea to pay attention to the errors emitted by the dump script... regards, tom lane