X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 56759D1EBB0 for ; Fri, 26 Mar 2004 20:44:05 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 49557-09 for ; Fri, 26 Mar 2004 16:44:11 -0400 (AST) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 3DD0FD1EBB1 for ; Fri, 26 Mar 2004 16:44:03 -0400 (AST) Received: (qmail 20423 invoked by uid 500); 26 Mar 2004 20:47:17 -0000 Date: Fri, 26 Mar 2004 14:47:17 -0600 From: Bruno Wolff III To: Victor Sudakov Cc: pgsql-admin@postgresql.org Subject: Re: automatic pg_dumpall Message-ID: <20040326204717.GE20194@wolff.to> Mail-Followup-To: Victor Sudakov , pgsql-admin@postgresql.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/353 X-Sequence-Number: 12922 On Thu, Mar 25, 2004 at 04:21:16 +0000, Victor Sudakov wrote: > Colleagues, > > If I have to organize an automatic nightly pg_dumpall, how do I handle > authentication ? I do not want to create a passwordless superuser (or > trust method in pg_hba.conf), and there is noone to enter the password > manually. Is there another recipe? Who do you trust? If you trust the system account that pg_dump is running under (and if you don't you have problems) and pg_dump is being run on the same machine as the postgres server, use a domain socket connection and ident authentication. This doesn't work on all OS's, but in works on a number of common ones.