Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 838239FA4BC for ; Wed, 3 Jan 2007 15:01:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 09887-10 for ; Wed, 3 Jan 2007 15:01:28 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by postgresql.org (Postfix) with ESMTP id A1F139FA4B4 for ; Wed, 3 Jan 2007 15:01:35 -0400 (AST) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id C574475372; Wed, 3 Jan 2007 19:01:34 +0000 (GMT) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 50AB1FF04; Wed, 3 Jan 2007 19:01:34 +0000 (GMT) Message-ID: <459BFD8D.4030100@archonet.com> Date: Wed, 03 Jan 2007 19:01:33 +0000 From: Richard Huxton User-Agent: Thunderbird 1.5.0.8 (X11/20061115) MIME-Version: 1.0 To: JTyrrell Cc: pgsql-general@postgresql.org Subject: Re: pg_dump problems References: <8138723.post@talk.nabble.com> In-Reply-To: <8138723.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/97 X-Sequence-Number: 106637 JTyrrell wrote: > > pg_dump -a -d testrig > testrig.data > > on a machine running postgresql 7.4.13 with database testirg i have no > problem. > > Then, I want to do the same but on a different machine running postgresql > 7.4.6 with database root. So... > > pg_dump -a -d root > root.data > > For some reason this doesnt work! The command is running without error, but > the file root.data is always empty. The database does exist and all the data > is there, and I can run psql and do everything I normally do. I've tried > pg_dump with other databases and still get an empty file. Should work just fine. 1. Does "pg_dump -s" work? 2. Does the user you run this as have permission to dump data from "root"? -- Richard Huxton Archonet Ltd