Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 022EA64FCCA; Thu, 18 Sep 2008 14:03:43 -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 49514-08; Thu, 18 Sep 2008 14:03:33 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id EC81D64FCC2; Thu, 18 Sep 2008 14:03:32 -0300 (ADT) Received: from perhan.alvh.no-ip.org (190-95-19-82.bk17-dsl.surnet.cl [190.95.19.82]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m8IH6vsW002689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Sep 2008 10:07:00 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3EFB247CAE; Thu, 18 Sep 2008 13:03:26 -0400 (CLT) Date: Thu, 18 Sep 2008 13:03:26 -0400 From: Alvaro Herrera To: Bernt Drange Cc: pgsql-admin@postgresql.org, Pg Hackers Subject: Re: Regaining superuser access Message-ID: <20080918170326.GH3868@alvh.no-ip.org> References: <355ba921-203b-4380-bee4-67209316be62@x35g2000hsb.googlegroups.com> <497334.45125.qm@web25803.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Thu, 18 Sep 2008 10:07:00 -0700 (PDT) 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: 200809/197 X-Sequence-Number: 30290 Bernt Drange escribió: > After a lot of fiddling with being able to enter single user mode on a > windows machine (I had to figure out how to run the command line as > the correct user, then for some reason -D didn't work, but SET > PGDATA=xxx worked), I finally managed to fix my problem. Hmm, the -D thing not working should probably be studied -- perhaps we're missing escaping something somewhere. Does the PGDATA path contain spaces or weird chars? -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support